aboutsummaryrefslogtreecommitdiffstats
path: root/src/audioOutput.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/audioOutput.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/audioOutput.c b/src/audioOutput.c
index 1968c4b39..c973e1beb 100644
--- a/src/audioOutput.c
+++ b/src/audioOutput.c
@@ -61,6 +61,7 @@ AudioOutput * newAudioOutput(ConfigParam * param) {
ret->finishDriverFunc = plugin->finishDriverFunc;
ret->openDeviceFunc = plugin->openDeviceFunc;
ret->playFunc = plugin->playFunc;
+ ret->dropBufferedAudioFunc = plugin->dropBufferedAudioFunc;
ret->closeDeviceFunc = plugin->closeDeviceFunc;
ret->sendMetdataFunc = plugin->sendMetdataFunc;
ret->open = 0;
@@ -165,6 +166,10 @@ int playAudioOutput(AudioOutput * audioOutput, char * playChunk, int size) {
return ret;
}
+void dropBufferedAudioOutput(AudioOutput * audioOutput) {
+ if(audioOutput->open) audioOutput->dropBufferedAudioFunc(audioOutput);
+}
+
void closeAudioOutput(AudioOutput * audioOutput) {
if(audioOutput->open) audioOutput->closeDeviceFunc(audioOutput);
}