1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-09 21:11:11 +02:00

Fix pointer calc as discussed here:

http://audacity.238276.n2.nabble.com/Interesting-critter-when-recording-td7559588.html

Figured it'd be best to get this in early on in the 2.0.6 cycle.
This commit is contained in:
lllucius 2013-10-25 14:22:36 +00:00
parent 6bff76a7ca
commit 292336c776

@ -120,7 +120,7 @@ int RingBuffer::Get(samplePtr buffer, sampleFormat format,
dest, format,
block);
dest += block * SAMPLE_SIZE(mFormat);
dest += block * SAMPLE_SIZE(format);
mStart = (mStart + block) % mBufferSize;
samplesToCopy -= block;
copied += block;