mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-18 16:41:14 +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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user