summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMarcelo Fernandez <marcelofg55@gmail.com>2017-09-13 13:34:22 -0300
committermarcelofg55 <marcelofg55@gmail.com>2017-09-13 20:54:55 -0300
commit7a4c0ff35e10fba5f2686e7fd5623eab31b07a2d (patch)
treeadf99ac4cff62e6898c14834400034cef668e54b /drivers
parentd6b392825fc3e22d9e0c62f0d17633c4224eb28f (diff)
Fix crash when no audio driver is available
Diffstat (limited to 'drivers')
-rw-r--r--drivers/rtaudio/audio_driver_rtaudio.cpp2
1 files changed, 1 insertions, 1 deletions
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 {