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.
This commit is contained in:
Robin Gareus 2014-10-23 13:02:02 +02:00
parent f3ff1b9669
commit d991bb10ca
6 changed files with 41 additions and 0 deletions

View file

@ -1254,6 +1254,13 @@ WavesAudioBackend::__already_configured ()
return false;
}
bool
WavesAudioBackend::__available ()
{
// COMMENTED DBG LOGS */ std::cout << "WavesAudioBackend::__available ():" << std::endl;
return true;
}
void*
WavesAudioBackend::private_handle () const
@ -1298,6 +1305,7 @@ AudioBackendInfo WavesAudioBackend::__backend_info = {
WavesAudioBackend::__deinstantiate,
WavesAudioBackend::__waves_backend_factory,
WavesAudioBackend::__already_configured,
WavesAudioBackend::__available,
};

View file

@ -335,6 +335,7 @@ class WavesMidiPort;
static int __instantiate (const std::string& arg1, const std::string& arg2);
static int __deinstantiate ();
static bool __already_configured ();
static bool __available ();
static void* __start_process_thread (void*);
static uint64_t __get_time_nanos ();