Minimum buffer size for beEncodeChunk?
"Ross Levis" <[email protected]> Fri, 17 Nov 2017 21:54:43 +1300
| Newsgroups | gmane.comp.audio.mp3.lame |
|---|---|
| Organization | http://www.stationplaylist.com |
| Message-ID | <001001d35f81$b79aed00$26d0c700$@com> |
Is there a minimum number of samples that should be sent to beEncodeChunk? I wonder this as my app is recording from a sound input device and playing to a sound output device, with the option of encoding directly to an MP3 file in the process. This generally all works fine, but if they switch off recording and back on again, the encoder can in some situations receive a much smaller buffer size than the usual 9kb, and this appears to corrupt the audio being encoded from that time onwards, with a continuous static noise along with the correct audio. That is my theory anyway. Would there be an issue sending 1 sample of audio to beEncodeChunk? Ross. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot