mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-26 22:51:21 +01:00
Persist meter state across toolbar resets and fix clipping indicator
This will fix the clipping indicator turning on after a toolbar reset and, as a bonus, the timers now only run if playing, capturing, or monitoring. Will (slightly) reduce the CPU consumption.
This commit is contained in:
@@ -171,6 +171,10 @@ class Meter : public wxPanel
|
||||
|
||||
void StartMonitoring();
|
||||
|
||||
// These exist solely for the purpose of reseting the toolbars
|
||||
void *SaveState();
|
||||
void RestoreState(void *state);
|
||||
|
||||
private:
|
||||
//
|
||||
// Event handlers
|
||||
|
||||
Reference in New Issue
Block a user