diff options
author | Robin Gareus <robin@gareus.org> | 2015-11-23 22:44:13 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-11-23 22:45:16 +0100 |
commit | 911830726e5c5d91b254240e0f88ddd81d97c95d (patch) | |
tree | 74e1308ab7cab55af72387fe4ea331b769a6c60b /gtk2_ardour/engine_dialog.h | |
parent | b754c4341e669729e29183abcd0857ec55eddb16 (diff) |
prefer recently used states.
Diffstat (limited to 'gtk2_ardour/engine_dialog.h')
-rw-r--r-- | gtk2_ardour/engine_dialog.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk2_ardour/engine_dialog.h b/gtk2_ardour/engine_dialog.h index ae2128b19b..bfb094deea 100644 --- a/gtk2_ardour/engine_dialog.h +++ b/gtk2_ardour/engine_dialog.h @@ -217,6 +217,7 @@ class EngineControl : public ArdourDialog, public PBD::ScopedConnectionList { bool active; std::string midi_option; std::vector<MidiDeviceSettings> midi_devices; + time_t lru; StateStruct() : sample_rate (48000) @@ -225,12 +226,14 @@ class EngineControl : public ArdourDialog, public PBD::ScopedConnectionList { , output_latency (0) , input_channels (0) , output_channels (0) - , active (false) {} + , active (false) + , lru (0) {} }; typedef boost::shared_ptr<StateStruct> State; typedef std::list<State> StateList; + static bool state_sort_cmp (const State &a, const State &b); StateList states; |