[Freeswitch-svn] [commit] r9877 - freeswitch/trunk/src/mod/formats/mod_shout

Freeswitch SVN anthm at freeswitch.org
Tue Oct 7 13:45:58 EDT 2008


Author: anthm
Date: Tue Oct  7 13:45:58 2008
New Revision: 9877

Modified:
   freeswitch/trunk/src/mod/formats/mod_shout/mod_shout.c

Log:
fix 32 bit vol on shout MODFORM-15 michael meyers bug

Modified: freeswitch/trunk/src/mod/formats/mod_shout/mod_shout.c
==============================================================================
--- freeswitch/trunk/src/mod/formats/mod_shout/mod_shout.c	(original)
+++ freeswitch/trunk/src/mod/formats/mod_shout/mod_shout.c	Tue Oct  7 13:45:58 2008
@@ -611,7 +611,12 @@
 		mpg123_open_feed(context->mh);
 		mpg123_format_all(context->mh);
 		mpg123_param(context->mh, MPG123_FORCE_RATE, context->samplerate, 0);
-		mpg123_param(context->mh, MPG123_OUTSCALE, 8192, 0);
+		mpg123_param(context->mh, MPG123_DOWN_SAMPLE, 1, 0);
+		if (sizeof(void *) == 4) {
+			mpg123_param(context->mh, MPG123_OUTSCALE, 65536, 0);
+		} else {
+			mpg123_param(context->mh, MPG123_OUTSCALE, 8192, 0);
+		}
 
 		if (handle->handler) {
 			mpg123_param(context->mh, MPG123_FLAGS, MPG123_SEEKBUFFER|MPG123_MONO_MIX, 0);



More information about the Freeswitch-svn mailing list