aboutsummaryrefslogtreecommitdiffstats
path: root/src/audio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/audio.c')
-rw-r--r--src/audio.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/audio.c b/src/audio.c
index bbc7fd0eb..b38c47d72 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -397,6 +397,19 @@ int playAudio(const char *playChunk, size_t size)
return 0;
}
+void audio_output_pause_all(void)
+{
+ unsigned int i;
+
+ syncAudioDeviceStates();
+
+ for (i = 0; i < audioOutputArraySize; ++i)
+ if (audio_output_is_open(&audioOutputArray[i]))
+ audio_output_pause(&audioOutputArray[i]);
+
+ audio_output_wait_all();
+}
+
void dropBufferedAudio(void)
{
unsigned int i;