1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-22 14:32:58 +02:00

Don't let the consumers discard too much from the scrub queue...

Producer adds silences when needed, so that the accounting in Transformer()
is correct
This commit is contained in:
Paul Licameli
2016-05-24 12:13:59 -04:00
parent b6764d1bf7
commit 9a256d3790
2 changed files with 85 additions and 47 deletions

View File

@@ -169,9 +169,8 @@ class AUDACITY_DLL_API AudioIO final {
* If options.adjustStart is true, then when mouse movement exceeds maximum scrub speed,
* adjust the beginning of the scrub interval rather than the end, so that
* the scrub skips or "stutters" to stay near the cursor.
* But if the "stutter" is too short for the minimum, then there is no effect
* on the work queue.
* Return true if some work was really enqueued.
* Return true if some sound was really enqueued.
* But if the "stutter" is too short for the minimum, enqueue nothing and return false.
*/
bool EnqueueScrub(double endTimeOrSpeed, double maxSpeed, const ScrubbingOptions &options);