[Freeswitch-users] Mod_Shout - Padding mp3 stream with 1s of empty audio
keith at laaks.com
Thu Sep 4 18:29:07 MSD 2014
I suspect this has to do with the addition of Stereo Support to mod_shout
This only happens when one uses "<param name="rate" value="48000²/>² in
I think the padding being added is actually less than the "1s of empty
audio² - because the largest value passed to memset¹ in mod_shout.c can be
Adding stereo halved the original pad duration. So with a 64Kbuffer @ 48000
(2 bytes per sample and Stereo), I think you only get 0.3 seconds of
buffer¹, which is just not enough for the streaming to keep up reliably and
therefor the repeated gaps¹.
Change it to "<param name="rate" value=³32000²/>² and the issue goes away as
it then gives 0.5 seconds of buffer (which was 1 second before stereo).
-------------- next part --------------
An HTML attachment was scrubbed...
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users