mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-26 14:41:14 +01:00
Fix crackle when playing at low speed.
This commit is contained in:
@@ -462,8 +462,8 @@ bool Scrubber::StartSpeedPlay(double speed, double time0, double time1)
|
|||||||
options.timeTrack = NULL;
|
options.timeTrack = NULL;
|
||||||
mOptions.startClockTimeMillis = ::wxGetLocalTimeMillis();
|
mOptions.startClockTimeMillis = ::wxGetLocalTimeMillis();
|
||||||
mOptions.delay = (ScrubPollInterval_ms * 0.9 / 1000.0);
|
mOptions.delay = (ScrubPollInterval_ms * 0.9 / 1000.0);
|
||||||
mOptions.minSpeed = speed;
|
mOptions.minSpeed = speed -0.01;
|
||||||
mOptions.maxSpeed = speed;
|
mOptions.maxSpeed = speed +0.01;
|
||||||
|
|
||||||
if (time1 == time0)
|
if (time1 == time0)
|
||||||
time1 = std::max(0.0, mProject->GetTracks()->GetEndTime());
|
time1 = std::max(0.0, mProject->GetTracks()->GetEndTime());
|
||||||
@@ -535,8 +535,8 @@ void Scrubber::ContinueScrubbingPoll()
|
|||||||
if (playAtSpeedTB) {
|
if (playAtSpeedTB) {
|
||||||
speed = playAtSpeedTB->GetPlaySpeed();
|
speed = playAtSpeedTB->GetPlaySpeed();
|
||||||
}
|
}
|
||||||
mOptions.minSpeed = speed;
|
mOptions.minSpeed = speed -0.01;
|
||||||
mOptions.maxSpeed = speed;
|
mOptions.maxSpeed = speed +0.01;
|
||||||
mOptions.adjustStart = false;
|
mOptions.adjustStart = false;
|
||||||
mOptions.enqueueBySpeed = true;
|
mOptions.enqueueBySpeed = true;
|
||||||
result = gAudioIO->EnqueueScrub(speed, mOptions);
|
result = gAudioIO->EnqueueScrub(speed, mOptions);
|
||||||
|
|||||||
Reference in New Issue
Block a user