aboutsummaryrefslogtreecommitdiffstats
path: root/src/audioOutput.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/audioOutput.c')
-rw-r--r--src/audioOutput.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/audioOutput.c b/src/audioOutput.c
index 27a464ade..b355ad2fa 100644
--- a/src/audioOutput.c
+++ b/src/audioOutput.c
@@ -151,13 +151,20 @@ static void convertAudioFormat(AudioOutput * audioOutput, char ** chunkArgPtr,
}
int playAudioOutput(AudioOutput * audioOutput, char * playChunk, int size) {
+ int ret;
+
if(!audioOutput->open) return -1;
if(!audioOutput->sameInAndOutFormats) {
convertAudioFormat(audioOutput, &playChunk, &size);
}
-
- return audioOutput->playFunc(audioOutput, playChunk, size);
+
+
+ blockSignals();
+ ret = audioOutput->playFunc(audioOutput, playChunk, size);
+ unblockSignals();
+
+ return ret;
}
void closeAudioOutput(AudioOutput * audioOutput) {