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

Freeswitch SVN brian at freeswitch.org
Sat Jan 19 14:03:22 EST 2008


Author: brian
Date: Sat Jan 19 14:03:22 2008
New Revision: 7298

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

Log:
wip

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	Sat Jan 19 14:03:22 2008
@@ -589,7 +589,11 @@
 		lame_set_num_channels(context->gfp, handle->channels);
 		lame_set_in_samplerate(context->gfp, handle->samplerate);
 		lame_set_brate(context->gfp, 24);
-		lame_set_mode(context->gfp, 3);
+        if (handle->channels == 2) {
+            lame_set_mode(context->gfp, STEREO);
+        } else {
+            lame_set_mode(context->gfp, MONO);
+        }
 		lame_set_quality(context->gfp, 2);	/* 2=high  5 = medium  7=low */
         
 		lame_set_errorf(context->gfp, log_error);



More information about the Freeswitch-svn mailing list