diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2005-03-10 10:47:06 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2005-03-10 10:47:06 +0000 |
commit | 959f9880efdefe32ad2df8a7daf75e304eb04573 (patch) | |
tree | b530a6ca762ffafd93bd9a223b4a6188223028b5 /src/decode.c | |
parent | 1f3116766c7e9e4335bbabf3fd3219dc3b94852c (diff) | |
download | mpd-959f9880efdefe32ad2df8a7daf75e304eb04573.tar.gz mpd-959f9880efdefe32ad2df8a7daf75e304eb04573.tar.xz mpd-959f9880efdefe32ad2df8a7daf75e304eb04573.zip |
todo update, and remove a potentially gratutious playSilence() call
git-svn-id: https://svn.musicpd.org/mpd/trunk@3051 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/decode.c | 7 |
1 files changed, 6 insertions, 1 deletions
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; } } |