mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-24 15:23:52 +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:
@@ -1431,7 +1431,7 @@ bool VSTEffect::ProcessStereo(int count,
|
|||||||
if (right) {
|
if (right) {
|
||||||
right->Set((samplePtr)mOutBuffer[1], floatSample, outrs, mWTBlockSize);
|
right->Set((samplePtr)mOutBuffer[1], floatSample, outrs, mWTBlockSize);
|
||||||
}
|
}
|
||||||
if (outBufferCursor > mWTBlockSize) {
|
if (outBufferCursor >= mWTBlockSize) {
|
||||||
//snake the buffer down
|
//snake the buffer down
|
||||||
memmove(mOutBuffer[0], mOutBuffer[0] + mWTBlockSize, SAMPLE_SIZE(floatSample) * (outBufferCursor - mWTBlockSize));
|
memmove(mOutBuffer[0], mOutBuffer[0] + mWTBlockSize, SAMPLE_SIZE(floatSample) * (outBufferCursor - mWTBlockSize));
|
||||||
memmove(mOutBuffer[1], mOutBuffer[1] + 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.
|
//finish taking the remainder.
|
||||||
if (outBufferCursor) {
|
if (outBufferCursor) {
|
||||||
left->Set((samplePtr)mOutBuffer[0], floatSample, ls, outBufferCursor);
|
left->Set((samplePtr)mOutBuffer[0], floatSample, outls, outBufferCursor);
|
||||||
if (right) {
|
if (right) {
|
||||||
right->Set((samplePtr)mOutBuffer[1], floatSample, rs, outBufferCursor);
|
right->Set((samplePtr)mOutBuffer[1], floatSample, outrs, outBufferCursor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user