13
0

allow to auto-start dummy backend (needed for tests)

This commit is contained in:
Robin Gareus 2014-12-03 18:24:56 +01:00
parent d45e19eda5
commit 9268d2e699
2 changed files with 5 additions and 0 deletions

View File

@ -1291,6 +1291,9 @@ deinstantiate ()
static bool
already_configured ()
{
if (_instance) {
return _instance->is_running();
}
return false;
}

View File

@ -213,6 +213,8 @@ class DummyAudioBackend : public AudioBackend {
DummyAudioBackend (AudioEngine& e, AudioBackendInfo& info);
~DummyAudioBackend ();
bool is_running () const { return _running; }
/* AUDIOBACKEND API */
std::string name () const;