From 851b543fb4754517650b78263b1357524c9c9552 Mon Sep 17 00:00:00 2001 From: Brian West Date: Sat, 19 Jan 2008 19:03:22 +0000 Subject: [PATCH] wip git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7298 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/formats/mod_shout/mod_shout.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mod/formats/mod_shout/mod_shout.c b/src/mod/formats/mod_shout/mod_shout.c index 6863703a7f..9d82a68ae2 100644 --- a/src/mod/formats/mod_shout/mod_shout.c +++ b/src/mod/formats/mod_shout/mod_shout.c @@ -589,7 +589,11 @@ static switch_status_t shout_file_open(switch_file_handle_t *handle, const char 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);