diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-05-21 22:31:07 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-05-21 22:31:07 +0000 |
commit | 547e358796b9d82041b94f18f9ddcb972b8f1e7e (patch) | |
tree | a9a49eb760ebf7d3f77f2dffac74902996574b95 /src/outputBuffer.h | |
parent | aea1ae9b9ec6d2e8d00d11ee59047a8e71afe123 (diff) | |
download | mpd-547e358796b9d82041b94f18f9ddcb972b8f1e7e.tar.gz mpd-547e358796b9d82041b94f18f9ddcb972b8f1e7e.tar.xz mpd-547e358796b9d82041b94f18f9ddcb972b8f1e7e.zip |
do input buffering in while sleeping loop of sending stuff to output buffer
git-svn-id: https://svn.musicpd.org/mpd/trunk@1125 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/outputBuffer.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/outputBuffer.h b/src/outputBuffer.h index d5bcb78c4..0ebc8ad1d 100644 --- a/src/outputBuffer.h +++ b/src/outputBuffer.h @@ -22,6 +22,7 @@ #include "mpd_types.h" #include "decode.h" #include "audio.h" +#include "inputStream.h" #define OUTPUT_BUFFER_DC_STOP -1 #define OUTPUT_BUFFER_DC_SEEK -2 @@ -42,8 +43,11 @@ void clearOutputBuffer(OutputBuffer * cb); void flushOutputBuffer(OutputBuffer * cb); -int sendDataToOutputBuffer(OutputBuffer * cb, DecoderControl * dc, - char * data, long datalen, float time, mpd_uint16 bitRate); +/* we send inStream where for buffering the inputStream while waiting to + send the next chunk */ +int sendDataToOutputBuffer(OutputBuffer * cb, InputStream * inStream, + DecoderControl * dc, char * data, long datalen, float time, + mpd_uint16 bitRate); #endif /* vim:set shiftwidth=4 tabstop=8 expandtab: */ |