Add API to enforce valid device selection.
[ardour.git] / libs / ardour / ardour / audio_backend.h
index 9a00cf281ee11b259c619069b484bf28e420d2d8..6523eb5081995535741a7dcb28e65a198bc828d3 100644 (file)
@@ -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.
      *