summaryrefslogtreecommitdiff
path: root/gtk2_ardour/engine_dialog.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2020-05-18 15:11:36 +0200
committerRobin Gareus <robin@gareus.org>2020-05-18 15:13:15 +0200
commitcbc6bccc360c62f0b0347fd26a4d438de0d6c45a (patch)
tree7be6b89707fe4631036695ef2b7bdbd900fd425a /gtk2_ardour/engine_dialog.h
parentc8cf84b7f9bf2495bbb56298c14812b415bc7bfd (diff)
Try restore the recently used state after device-list refresh
This takes into account if the device is present, and picks the most recently used state for the available devices.
Diffstat (limited to 'gtk2_ardour/engine_dialog.h')
-rw-r--r--gtk2_ardour/engine_dialog.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk2_ardour/engine_dialog.h b/gtk2_ardour/engine_dialog.h
index e80c110c90..57ae462745 100644
--- a/gtk2_ardour/engine_dialog.h
+++ b/gtk2_ardour/engine_dialog.h
@@ -272,7 +272,8 @@ private:
StateList states;
- State get_matching_state (const std::string& backend);
+ bool set_state_for_backend (const std::string& backend);
+
State get_matching_state (const std::string& backend,
const std::string& driver,
const std::string& device);