Closed GoogleCodeExporter closed 9 years ago
Implemented in r855.
Now when you create a set of IAudioSamples, the numSamples argument is used to
determine the buffer to later allocate when needed. If you pass that object to
IAudioSamples.decodeAudio(), and IAudioSamples.getMaxBufferSize() is < 192000,
then
we will reallocate the underlying IBuffer in the IAudioSampels object to gie it
at
least 192000. All other methods (e.g. IStreamCoder.encodeAudio,
IAudioResampler.resample) will not resize the buffers, and will fail if you
don't
pass in the right size.
In general this should work without backwards compatibility changes (although
that
means we're adding a few bytes (less than 128) at the end of every samples
buffer to
cover potential assembly 64-bit instruction overreads and potential audio
resampler
leadin requirements).
Original comment by art.cla...@gmail.com
on 30 Jul 2009 at 11:27
Again in r855
Original comment by art.cla...@gmail.com
on 30 Jul 2009 at 11:28
Original issue reported on code.google.com by
art.cla...@gmail.com
on 30 Jul 2009 at 11:14