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:
parent
575e631d49
commit
03678eccba
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user