added decoder_data()
Moved all of the player-waiting code to decoder_data(), to make OutputBuffer more generic.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user