mirror of
https://github.com/cookiengineer/audacity
synced 2026-01-02 14:17:07 +01:00
Workaround build breakers. Needs review.
These changes fix a broken build in Windows. #include <algorithm> needed for min/max to be in std. decltype(+name) was declaring a const variable, that could not be incremented. Changed to auto.
This commit is contained in:
@@ -291,7 +291,7 @@ bool EffectSoundTouch::ProcessStereo(WaveTrack* leftTrack, WaveTrack* rightTrack
|
||||
rightTrack->Get((samplePtr)(rightBuffer), floatSample, sourceSampleCount, blockSize);
|
||||
|
||||
// Interleave into soundTouchBuffer.
|
||||
for (decltype(+blockSize) index = 0; index < blockSize; index++) {
|
||||
for (auto index = 0; index < blockSize; index++) {
|
||||
soundTouchBuffer[index*2] = leftBuffer[index];
|
||||
soundTouchBuffer[(index*2)+1] = rightBuffer[index];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user