1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-20 17:41:13 +02:00

Momentary Stop push-down happens in yield to the idle time handler...

... So that ControlToolBar::StopPlaying now does nothing directly to the
buttons, and can be moved to another place with no dependency on ControlToolBar
This commit is contained in:
Paul Licameli
2019-07-01 09:54:52 -04:00
parent 5ab3986261
commit 2a87ea77cf
2 changed files with 21 additions and 4 deletions

View File

@@ -43,6 +43,8 @@ public:
// active
bool Recording() const;
bool Stopping() const { return mStopping; }
// Whether the last attempt to start recording requested appending to tracks
bool Appending() const { return mAppending; }
bool Looping() const { return mLooping; }
@@ -52,6 +54,7 @@ public:
void SetAppending( bool value ) { mAppending = value; }
void SetLooping( bool value ) { mLooping = value; }
void SetCutting( bool value ) { mCutting = value; }
void SetStopping( bool value ) { mStopping = value; }
private:
// Audio IO callback methods
@@ -71,6 +74,7 @@ private:
bool mAppending{ false };
bool mLooping{ false };
bool mCutting{ false };
bool mStopping{ false };
};
AudioIOStartStreamOptions DefaultPlayOptions( AudacityProject &project );