From 7a4c0ff35e10fba5f2686e7fd5623eab31b07a2d Mon Sep 17 00:00:00 2001 From: Marcelo Fernandez Date: Wed, 13 Sep 2017 13:34:22 -0300 Subject: Fix crash when no audio driver is available --- drivers/rtaudio/audio_driver_rtaudio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers') diff --git a/drivers/rtaudio/audio_driver_rtaudio.cpp b/drivers/rtaudio/audio_driver_rtaudio.cpp index ae5fdd28b6..a184c9e9cf 100644 --- a/drivers/rtaudio/audio_driver_rtaudio.cpp +++ b/drivers/rtaudio/audio_driver_rtaudio.cpp @@ -143,7 +143,7 @@ Error AudioDriverRtAudio::init() { } } - return OK; + return active ? OK : ERR_UNAVAILABLE; } int AudioDriverRtAudio::get_mix_rate() const { -- cgit v1.2.3