mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-25 08:58:06 +02:00
Fix bug 126 followup: VST processing doesn't do last 12 seconds.
Due to a typo and sloppy testing by me I didn't get the end case correct. This should fix it.
This commit is contained in:
parent
397836c471
commit
d767dc8f1d
@ -1431,7 +1431,7 @@ bool VSTEffect::ProcessStereo(int count,
|
||||
if (right) {
|
||||
right->Set((samplePtr)mOutBuffer[1], floatSample, outrs, mWTBlockSize);
|
||||
}
|
||||
if (outBufferCursor > mWTBlockSize) {
|
||||
if (outBufferCursor >= mWTBlockSize) {
|
||||
//snake the buffer down
|
||||
memmove(mOutBuffer[0], mOutBuffer[0] + mWTBlockSize, SAMPLE_SIZE(floatSample) * (outBufferCursor - mWTBlockSize));
|
||||
memmove(mOutBuffer[1], mOutBuffer[1] + mWTBlockSize, SAMPLE_SIZE(floatSample) * (outBufferCursor - mWTBlockSize));
|
||||
@ -1462,9 +1462,9 @@ bool VSTEffect::ProcessStereo(int count,
|
||||
|
||||
//finish taking the remainder.
|
||||
if (outBufferCursor) {
|
||||
left->Set((samplePtr)mOutBuffer[0], floatSample, ls, outBufferCursor);
|
||||
left->Set((samplePtr)mOutBuffer[0], floatSample, outls, outBufferCursor);
|
||||
if (right) {
|
||||
right->Set((samplePtr)mOutBuffer[1], floatSample, rs, outBufferCursor);
|
||||
right->Set((samplePtr)mOutBuffer[1], floatSample, outrs, outBufferCursor);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user