diff options
author | Max Kellermann <max@duempel.org> | 2008-08-26 08:27:05 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-08-26 08:27:05 +0200 |
commit | 2a83ccdb8f71d224341ea5a6ddbc002693d887fb (patch) | |
tree | 7a6c3f2a480739e2951fe3141c8ca8a1aacc0db7 /src/decoder_api.h | |
parent | 8814c0c898162f25ef4851df5cf8c9e68ff83942 (diff) | |
download | mpd-2a83ccdb8f71d224341ea5a6ddbc002693d887fb.tar.gz mpd-2a83ccdb8f71d224341ea5a6ddbc002693d887fb.tar.xz mpd-2a83ccdb8f71d224341ea5a6ddbc002693d887fb.zip |
added decoder_data()
Moved all of the player-waiting code to decoder_data(), to make
OutputBuffer more generic.
Diffstat (limited to '')
-rw-r--r-- | src/decoder_api.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/decoder_api.h b/src/decoder_api.h index c9ab3ebbb..a56b7ef55 100644 --- a/src/decoder_api.h +++ b/src/decoder_api.h @@ -27,6 +27,8 @@ */ #include "inputPlugin.h" +#include "inputStream.h" +#include "replayGain.h" /** * Opaque handle which the decoder plugin passes to the functions in @@ -40,4 +42,17 @@ struct decoder; */ void decoder_initialized(struct decoder * decoder); +/** + * This function is called by the decoder plugin when it has + * successfully decoded block of input data. + * + * We send inStream for buffering the inputStream while waiting to + * send the next chunk + */ +int decoder_data(struct decoder *decoder, InputStream * inStream, + int seekable, + void *data, size_t datalen, + float data_time, mpd_uint16 bitRate, + ReplayGainInfo * replayGainInfo); + #endif |