From dc4867b214ab6b7761b41a8778c8f301ef59d154 Mon Sep 17 00:00:00 2001 From: darkeye Date: Sun, 21 Oct 2001 13:08:18 +0000 Subject: [PATCH] fixed incorrect vorbis bitrate setting --- darkice/trunk/ChangeLog | 1 + darkice/trunk/src/VorbisLibEncoder.cpp | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/darkice/trunk/ChangeLog b/darkice/trunk/ChangeLog index e98462b..32eb362 100644 --- a/darkice/trunk/ChangeLog +++ b/darkice/trunk/ChangeLog @@ -1,6 +1,7 @@ DarkIce 0.8 o added possibility to disable lowpass and highpass filtering for lame + o fixed incorrect vorbis bitrate setting 19-10-2001: DarkIce 0.7 released diff --git a/darkice/trunk/src/VorbisLibEncoder.cpp b/darkice/trunk/src/VorbisLibEncoder.cpp index 66ec4c6..33943d4 100644 --- a/darkice/trunk/src/VorbisLibEncoder.cpp +++ b/darkice/trunk/src/VorbisLibEncoder.cpp @@ -75,9 +75,9 @@ VorbisLibEncoder :: open ( void ) if ( (ret = vorbis_encode_init( &vorbisInfo, getInChannel(), getInSampleRate(), - getOutBitrate(), - getOutBitrate(), - getOutBitrate() )) ) { + -1, + getOutBitrate() * 1000, + -1 )) ) { throw Exception( __FILE__, __LINE__, "vorbis encode init error", ret); } @@ -359,6 +359,9 @@ VorbisLibEncoder :: close ( void ) throw ( Exception ) $Source$ $Log$ + Revision 1.5 2001/10/21 13:08:18 darkeye + fixed incorrect vorbis bitrate setting + Revision 1.4 2001/10/19 12:39:42 darkeye created configure options to compile with or without lame / Ogg Vorbis