From 03678eccba39ee7bb77170f6e746221fc7676bac Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Mon, 20 Aug 2018 10:22:46 -0400 Subject: [PATCH] use mRate not sampleRate --- src/AudioIO.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/AudioIO.cpp b/src/AudioIO.cpp index b6fc7f87f..e8907b049 100644 --- a/src/AudioIO.cpp +++ b/src/AudioIO.cpp @@ -2247,11 +2247,10 @@ bool AudioIO::AllocateBuffers( // mouse input, so make fillings more and shorter. // What Audio thread produces for playback is then consumed by the PortAudio // thread, in many smaller pieces. - double playbackTime = 4.0; if (scrubbing) playbackTime = - lrint(options.pScrubbingOptions->delay * sampleRate) / sampleRate; + lrint(options.pScrubbingOptions->delay * mRate) / mRate; wxASSERT( playbackTime >= 0 ); mPlaybackSamplesToCopy = playbackTime * mRate;