mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-21 06:01:13 +02:00
Reverting r12591 as it was not complete and we're too close to
freeze to risk fixing it now. Will readdress after 2.0.5 is released. Basically, RingBuffer is ill equiped to handle an input stride other than 1. Thanks to Peter for testing this for me.
This commit is contained in:
@@ -53,7 +53,7 @@ int RingBuffer::AvailForPut()
|
||||
}
|
||||
|
||||
int RingBuffer::Put(samplePtr buffer, sampleFormat format,
|
||||
int samplesToCopy, int stride /* = 1 */)
|
||||
int samplesToCopy)
|
||||
{
|
||||
samplePtr src;
|
||||
int block;
|
||||
@@ -75,7 +75,7 @@ int RingBuffer::Put(samplePtr buffer, sampleFormat format,
|
||||
|
||||
CopySamples(src, format,
|
||||
mBuffer + pos * SAMPLE_SIZE(mFormat), mFormat,
|
||||
block, true, stride);
|
||||
block);
|
||||
|
||||
src += block * SAMPLE_SIZE(format);
|
||||
pos = (pos + block) % mBufferSize;
|
||||
|
Reference in New Issue
Block a user