Fix crash when no audio driver is available

This commit is contained in:
Marcelo Fernandez
2017-09-13 13:34:22 -03:00
committed by marcelofg55
parent d6b392825f
commit 7a4c0ff35e
13 changed files with 53 additions and 83 deletions

View File

@@ -143,7 +143,7 @@ Error AudioDriverRtAudio::init() {
}
}
return OK;
return active ? OK : ERR_UNAVAILABLE;
}
int AudioDriverRtAudio::get_mix_rate() const {