diff options
author | Robin Gareus <robin@gareus.org> | 2014-10-23 13:02:02 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-10-23 16:53:14 +0200 |
commit | d991bb10cacc83792ae7fdc9fe3ce24cbffb42f1 (patch) | |
tree | 3cbe46bd8c2e49e4613f13172db57d5890e42ace /libs/ardour | |
parent | f3ff1b9669a2e56f73867ab7ebe3128833c4ab93 (diff) |
add 'available' interface to the AudioBackendInfo
If a backend can be loaded, it does not mean that it can be used;
e.g. weak-linked jack-backend if libjack is not available.
Diffstat (limited to 'libs/ardour')
-rw-r--r-- | libs/ardour/ardour/audio_backend.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/ardour/ardour/audio_backend.h b/libs/ardour/ardour/audio_backend.h index a61e5757de..ed29bd3c28 100644 --- a/libs/ardour/ardour/audio_backend.h +++ b/libs/ardour/ardour/audio_backend.h @@ -70,6 +70,14 @@ struct LIBARDOUR_API AudioBackendInfo { * not currently required, is still possible. */ bool (*already_configured)(); + + /** Return true if the underlying mechanism/API can be + * used on the given system. + * + * If this function returns false, the backend is not + * listed in the engine dialog. + */ + bool (*available)(); }; class LIBARDOUR_API AudioBackend : public PortEngine { |