1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Keyboard scrubbing and Play-at-speed: remove initial silence

Currently AudioIoCallback::ScrubState::Get(), inserts a period of silence the first time it's called because at this time Scrubber::ContinueScrubbingPoll() has not been called, and so message.end has not been set to an appropriate value.
In the case of keyboard scrubbing and play-at-speed, the initial speed is already known, so message.end can be set to this value, removing the need for an initial silence.
The start of keyboard scrubbing and play-at-speed are now faster (the latter very much faster).
This commit is contained in:
David Bailes
2020-02-11 09:54:45 +00:00
parent 55e44cdc83
commit e0302257c5
3 changed files with 27 additions and 16 deletions

View File

@@ -53,7 +53,8 @@ struct ScrubbingOptions {
double delay {};
// Limiting values for the speed of a scrub interval:
// Initial and limiting values for the speed of a scrub interval:
double initSpeed { 1.0 };
double minSpeed { 0.0 };
double maxSpeed { 1.0 };