moved check to outputBufferAbsolute()
decoderParent() uses a lot of OutputBuffer internals to see whether cross-fading should be started. Move these checks to outputBuffer.c, which also simplifies decoderParent(). git-svn-id: https://svn.musicpd.org/mpd/trunk@7262 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
committed by
Eric Wong
parent
a546428263
commit
e626028b41
@@ -58,6 +58,12 @@ void flushOutputBuffer(OutputBuffer * cb);
|
||||
/** determine the number of decoded chunks */
|
||||
unsigned availableOutputBuffer(const OutputBuffer * cb);
|
||||
|
||||
/**
|
||||
* Get the absolute index of the nth used chunk after the first one.
|
||||
* Returns -1 if there is no such chunk.
|
||||
*/
|
||||
int outputBufferAbsolute(const OutputBuffer * cb, unsigned relative);
|
||||
|
||||
/* we send inStream for buffering the inputStream while waiting to
|
||||
send the next chunk */
|
||||
int sendDataToOutputBuffer(OutputBuffer * cb,
|
||||
|
||||
Reference in New Issue
Block a user