added outputBufferRelative()
The cross-fade check is still very complicated whenever it uses OutputBuffer internals. Greatly simplify another check by introducing outputBufferRelative(). git-svn-id: https://svn.musicpd.org/mpd/trunk@7264 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
committed by
Eric Wong
parent
50dc380f23
commit
4e60343e55
@@ -58,6 +58,12 @@ void flushOutputBuffer(OutputBuffer * cb);
|
||||
/** is the buffer empty? */
|
||||
int outputBufferEmpty(const OutputBuffer * cb);
|
||||
|
||||
/**
|
||||
* what is the position of the specified chunk number, relative to
|
||||
* the first chunk in use?
|
||||
*/
|
||||
unsigned int outputBufferRelative(const OutputBuffer * cb, unsigned i);
|
||||
|
||||
/** determine the number of decoded chunks */
|
||||
unsigned availableOutputBuffer(const OutputBuffer * cb);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user