From 9673ecf98b509462eb0f6d885aa0aa858ed52610 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 7 Oct 2008 17:45:58 +0000 Subject: [PATCH] fix 32 bit vol on shout MODFORM-15 michael meyers bug git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9877 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/formats/mod_shout/mod_shout.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/mod/formats/mod_shout/mod_shout.c b/src/mod/formats/mod_shout/mod_shout.c index 4bc52d44c5..7860f16fd1 100644 --- a/src/mod/formats/mod_shout/mod_shout.c +++ b/src/mod/formats/mod_shout/mod_shout.c @@ -611,7 +611,12 @@ static switch_status_t shout_file_open(switch_file_handle_t *handle, const char 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);