summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-11-26 14:30:46 +0100
committerRobin Gareus <robin@gareus.org>2016-11-26 15:31:21 +0100
commit335debfa2fed045dc80c43fb2ef62d89262fc8f8 (patch)
tree1c53a70e42aa95a20232851986077ffb0373848f /libs/ardour/ardour
parent5bf8a5537b7771a7f523ab242f186e513c3a4c76 (diff)
Add API to enforce valid device selection.
Diffstat (limited to 'libs/ardour/ardour')
-rw-r--r--libs/ardour/ardour/audio_backend.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/ardour/ardour/audio_backend.h b/libs/ardour/ardour/audio_backend.h
index 9a00cf281e..6523eb5081 100644
--- a/libs/ardour/ardour/audio_backend.h
+++ b/libs/ardour/ardour/audio_backend.h
@@ -202,6 +202,14 @@ class LIBARDOUR_API AudioBackend : public PortEngine {
*/
virtual bool use_separate_input_and_output_devices () const { return false; }
+ /* Return true if the backend uses separate I/O devices only for the case
+ * of allowing one to be "None".
+ *
+ * ie. Input Device must match Output Device, except if either of them
+ * is get_standard_device_name (DeviceNone).
+ */
+ virtual bool match_input_output_devices_or_none () const { return false; }
+
/** Returns a collection of DeviceStatuses identifying devices discovered
* by this backend since the start of the process.
*