aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--TODO4
-rw-r--r--src/decode.c7
2 files changed, 10 insertions, 1 deletions
diff --git a/TODO b/TODO
index 51a200931..4474e9655 100644
--- a/TODO
+++ b/TODO
@@ -15,7 +15,11 @@
*) aduio output
*) allowing "pausing" of audio output devices
+ *) while pausing, play silence for the devices that don't support
+ "pausing"
*) add support for automagically detecting the current output device
+ *) correlated the automagically deteted output device to the default
+ mixer to choose
*) need better resampling code
0.13
diff --git a/src/decode.c b/src/decode.c
index 83d0936c9..0ffa9f87e 100644
--- a/src/decode.c
+++ b/src/decode.c
@@ -497,7 +497,10 @@ void decodeParent(PlayerControl * pc, DecoderControl * dc, OutputBuffer * cb) {
{
processDecodeInput();
if(quit) return;
- playSilenceOrSleep();
+ /*playSilenceOrSleep();*/
+ /* instead we want to pause audio and play silence for
+ * devices that don't support pausing */
+ my_usleep(1000);
}
while(!quit) {
@@ -652,6 +655,8 @@ void decodeParent(PlayerControl * pc, DecoderControl * dc, OutputBuffer * cb) {
break;
}
else {
+ /* instead we want to pause audio and play silence for
+ * devices that don't support pausing */
if(playAudio(silence, CHUNK_SIZE) < 0) quit = 1;
}
}