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:
Max Kellermann
2008-04-12 04:12:53 +00:00
committed by Eric Wong
parent 50dc380f23
commit 4e60343e55
3 changed files with 17 additions and 10 deletions
+6
View File
@@ -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);