diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2005-03-05 14:01:13 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2005-03-05 14:01:13 +0000 |
commit | 92653f847492ece39beb91d547434c9a7c5e6978 (patch) | |
tree | bd52e1367f684df9a736988acd8080f638408ee9 /src/audioOutput.c | |
parent | 7808fea94abf1f0fef48c8891c028c83b2e0fde8 (diff) | |
download | mpd-92653f847492ece39beb91d547434c9a7c5e6978.tar.gz mpd-92653f847492ece39beb91d547434c9a7c5e6978.tar.xz mpd-92653f847492ece39beb91d547434c9a7c5e6978.zip |
implemented dropping of current buffered audio, works for oss, but there seems
to be a "blip" for alsa devices, needs more work
git-svn-id: https://svn.musicpd.org/mpd/trunk@3011 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/audioOutput.c | 5 |
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); } |