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