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

Do not use ControlToolBar's Record button as a state variable

This commit is contained in:
Paul Licameli
2019-07-01 10:26:22 -04:00
parent 923128731d
commit cac04e9fb8
4 changed files with 35 additions and 35 deletions

View File

@@ -36,8 +36,16 @@ public:
void ResetTimerRecordCancelled() { mTimerRecordCanceled = false; }
bool Paused() const { return mPaused; }
// Whether recording into this project (not just into some project) is
// active
bool Recording() const;
// Whether the last attempt to start recording requested appending to tracks
bool Appending() const { return mAppending; }
void SetPaused( bool value ) { mPaused = value; }
void SetAppending( bool value ) { mAppending = value; }
private:
// Audio IO callback methods
@@ -54,6 +62,7 @@ private:
bool mTimerRecordCanceled{ false };
bool mPaused{ false };
bool mAppending{ false };
};
AudioIOStartStreamOptions DefaultPlayOptions( AudacityProject &project );