aboutsummaryrefslogtreecommitdiffstats
path: root/src/audio.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/audio.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/audio.c b/src/audio.c
index e677f8768..605bf796e 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -278,6 +278,11 @@ int playAudio(char * playChunk, int size) {
return 0;
}
+int isAudioDeviceOpen() {
+ if(audio_device) return 1;
+ return 0;
+}
+
void closeAudioDevice() {
#ifdef HAVE_AUDIO
if(audio_device) {