diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-10-22 20:43:20 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-10-22 20:43:20 +0000 |
commit | 36a2d853bd42658a71610e270001a86bb10e9abd (patch) | |
tree | 44b90bd71d6a1c909b4f979373b465f1cc0db767 /src/audioOutput_shout.c | |
parent | cffe4c00db3b6bce3e7961981c1b4464a3b2584f (diff) | |
download | mpd-36a2d853bd42658a71610e270001a86bb10e9abd.tar.gz mpd-36a2d853bd42658a71610e270001a86bb10e9abd.tar.xz mpd-36a2d853bd42658a71610e270001a86bb10e9abd.zip |
use vbr for now, less cpu usage for some reason
git-svn-id: https://svn.musicpd.org/mpd/trunk@2304 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/audioOutput_shout.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/audioOutput_shout.c b/src/audioOutput_shout.c index 12162b240..fdf1937a4 100644 --- a/src/audioOutput_shout.c +++ b/src/audioOutput_shout.c @@ -202,11 +202,8 @@ static int shout_openDevice(AudioOutput * audioOutput, vorbis_info_init(&(sd->vi)); -#define BITRATE 128 - - if( 0 != vorbis_encode_init(&(sd->vi), audioFormat->channels, - audioFormat->sampleRate, BITRATE*1000, BITRATE*1000, - BITRATE*1000)) + if( 0 != vorbis_encode_init_vbr(&(sd->vi), audioFormat->channels, + audioFormat->sampleRate, 0.5) ) { ERROR("problem seting up vorbis encoder for shout\n"); vorbis_info_clear(&(sd->vi)); |