mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-25 07:43:54 +02:00
Changes of names and comments relating to scrub, don't mention queue
This commit is contained in:
@@ -252,23 +252,18 @@ class AUDACITY_DLL_API AudioIO final {
|
||||
void SeekStream(double seconds) { mSeek = seconds; }
|
||||
|
||||
#ifdef EXPERIMENTAL_SCRUBBING_SUPPORT
|
||||
bool IsScrubbing() const { return IsBusy() && mScrubQueue != 0; }
|
||||
bool IsScrubbing() const { return IsBusy() && mScrubState != 0; }
|
||||
|
||||
/** \brief enqueue a NEW scrub play interval, using the last end as the NEW start,
|
||||
* to be played over the same duration, as between this and the last
|
||||
* enqueuing (or the starting of the stream). Except, we do not exceed maximum
|
||||
* scrub speed, so may need to adjust either the start or the end.
|
||||
* 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.
|
||||
* Return true if some sound was really enqueued.
|
||||
* But if the "stutter" is too short for the minimum, enqueue nothing and return false.
|
||||
/** \brief Notify scrubbing engine of desired position or speed.
|
||||
* 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.
|
||||
*/
|
||||
bool EnqueueScrub(double endTimeOrSpeed, const ScrubbingOptions &options);
|
||||
bool UpdateScrub(double endTimeOrSpeed, const ScrubbingOptions &options);
|
||||
|
||||
/** \brief return the ending time of the last enqueued scrub interval.
|
||||
/** \brief return the ending time of the last scrub interval.
|
||||
*/
|
||||
double GetLastTimeInScrubQueue() const;
|
||||
double GetLastScrubTime() const;
|
||||
#endif
|
||||
|
||||
/** \brief Returns true if audio i/o is busy starting, stopping, playing,
|
||||
@@ -803,8 +798,8 @@ private:
|
||||
wxMutex mSuspendAudioThread;
|
||||
|
||||
#ifdef EXPERIMENTAL_SCRUBBING_SUPPORT
|
||||
struct ScrubQueue;
|
||||
std::unique_ptr<ScrubQueue> mScrubQueue;
|
||||
struct ScrubState;
|
||||
std::unique_ptr<ScrubState> mScrubState;
|
||||
|
||||
bool mSilentScrub;
|
||||
double mScrubSpeed;
|
||||
|
||||
Reference in New Issue
Block a user