1
0
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:
lllucius
2015-01-01 23:29:08 +00:00
parent 2e6e110a34
commit bec5866653
4 changed files with 83 additions and 14 deletions

View File

@@ -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