mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Fix crash when no audio driver is available
This commit is contained in:
committed by
marcelofg55
parent
d6b392825f
commit
7a4c0ff35e
@@ -143,7 +143,7 @@ Error AudioDriverRtAudio::init() {
|
||||
}
|
||||
}
|
||||
|
||||
return OK;
|
||||
return active ? OK : ERR_UNAVAILABLE;
|
||||
}
|
||||
|
||||
int AudioDriverRtAudio::get_mix_rate() const {
|
||||
|
||||
Reference in New Issue
Block a user