1
0
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:
lllucius
2013-10-07 12:37:15 +00:00
parent 8cb1681e47
commit e5a4eecb25
3 changed files with 40 additions and 6 deletions

View File

@@ -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;