1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-02 08:39:46 +02:00

Insert zeroes only if dropout detection is enabled

This commit is contained in:
Paul Licameli 2018-01-16 12:03:06 -05:00
parent 130e55cdf5
commit e066c4f38d

View File

@ -5240,7 +5240,8 @@ int audacityAudioCallback(const void *inputBuffer, void *outputBuffer,
}
}
if (len < framesPerBuffer) {
if (gAudioIO->mDetectDropouts &&
len < framesPerBuffer) {
for(unsigned t = 0; t < numCaptureChannels; t++) {
// Get here probably because of failure to keep up with real
// time, causing loss of input samples.