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:
@@ -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 };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user