1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-09-17 16:50:26 +02:00

use mRate not sampleRate

This commit is contained in:
Paul Licameli 2018-08-20 10:22:46 -04:00
parent 575e631d49
commit 03678eccba

View File

@ -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;