added highpass and lowpass values to icecast2 sections

This commit is contained in:
darkeye 2005-10-22 10:34:21 +00:00
parent e3e872e85a
commit 726f4f1496
2 changed files with 14 additions and 1 deletions

View File

@ -1,6 +1,8 @@
DarkIce next version DarkIce next version
o added AAC support through the faac codec, http://www.audiocoding.com o added AAC support through the faac codec, http://www.audiocoding.com
o bug fix: icecast2 sections didn't honor lowpass or highpass filters
when using the mp3 format
14-04-2005 DarkIce 0.15 released 14-04-2005 DarkIce 0.15 released

View File

@ -390,6 +390,8 @@ DarkIce :: configIceCast2 ( const Config & config,
const char * url = 0; const char * url = 0;
const char * genre = 0; const char * genre = 0;
bool isPublic = false; bool isPublic = false;
int lowpass = 0;
int highpass = 0;
const char * localDumpName = 0; const char * localDumpName = 0;
FileSink * localDumpFile = 0; FileSink * localDumpFile = 0;
bool fileAddDate = false; bool fileAddDate = false;
@ -461,6 +463,10 @@ DarkIce :: configIceCast2 ( const Config & config,
genre = cs->get( "genre"); genre = cs->get( "genre");
str = cs->get( "public"); str = cs->get( "public");
isPublic = str ? (Util::strEq( str, "yes") ? true : false) : false; isPublic = str ? (Util::strEq( str, "yes") ? true : false) : false;
str = cs->get( "lowpass");
lowpass = str ? Util::strToL( str) : 0;
str = cs->get( "highpass");
highpass = str ? Util::strToL( str) : 0;
str = cs->get( "fileAddDate"); str = cs->get( "fileAddDate");
fileAddDate = str ? (Util::strEq( str, "yes") ? true : false) : false; fileAddDate = str ? (Util::strEq( str, "yes") ? true : false) : false;
@ -517,7 +523,9 @@ DarkIce :: configIceCast2 ( const Config & config,
bitrate, bitrate,
quality, quality,
sampleRate, sampleRate,
channel ); channel,
lowpass,
highpass );
#endif // HAVE_LAME_LIB #endif // HAVE_LAME_LIB
break; break;
@ -1059,6 +1067,9 @@ DarkIce :: run ( void ) throw ( Exception )
$Source$ $Source$
$Log$ $Log$
Revision 1.45 2005/10/22 10:34:21 darkeye
added highpass and lowpass values to icecast2 sections
Revision 1.44 2005/04/16 21:57:34 darkeye Revision 1.44 2005/04/16 21:57:34 darkeye
added AAC support through the faac codec, http://www.audiocoding.com/ added AAC support through the faac codec, http://www.audiocoding.com/