From 335debfa2fed045dc80c43fb2ef62d89262fc8f8 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 26 Nov 2016 14:30:46 +0100 Subject: Add API to enforce valid device selection. --- libs/ardour/ardour/audio_backend.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libs/ardour/ardour') 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. * -- cgit v1.2.3