1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-19 17:40:15 +02:00

Revert "Bug1104: When one stereo channel is shorter, don't stop playback at its end."

This reverts commit 0b5e35003fd921d5a1788d85b2909da94a4acaf4.
This commit is contained in:
Paul Licameli 2016-01-31 15:26:44 -05:00
parent 0b5e35003f
commit fd2e36b538

View File

@ -4224,8 +4224,8 @@ int audacityAudioCallback(const void *inputBuffer, void *outputBuffer,
(int)framesPerBuffer); (int)framesPerBuffer);
chanCnt++; chanCnt++;
} }
// There can be a difference of len in different loop passes if one channel // There should not be a difference of len in different loop passes...
// of a stereo track ends before the other! Take a max! // but anyway take a max.
maxLen = std::max(maxLen, len); maxLen = std::max(maxLen, len);
@ -4257,9 +4257,6 @@ int audacityAudioCallback(const void *inputBuffer, void *outputBuffer,
} }
#endif #endif
// Last channel seen now
len = maxLen;
if( !cut && selected ) if( !cut && selected )
{ {
len = em.RealtimeProcess(group, chanCnt, tempBufs, len); len = em.RealtimeProcess(group, chanCnt, tempBufs, len);