diff options
author | Max Kellermann <max@duempel.org> | 2008-04-12 04:12:53 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-04-12 04:12:53 +0000 |
commit | 4e60343e552e8b7339678c6df7255a0f91dc769e (patch) | |
tree | ca4f2994b441819c28af63da20fe5279fd234050 /src/outputBuffer.h | |
parent | 50dc380f2385988047821fe15c5616f44019250f (diff) | |
download | mpd-4e60343e552e8b7339678c6df7255a0f91dc769e.tar.gz mpd-4e60343e552e8b7339678c6df7255a0f91dc769e.tar.xz mpd-4e60343e552e8b7339678c6df7255a0f91dc769e.zip |
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
Diffstat (limited to 'src/outputBuffer.h')
-rw-r--r-- | src/outputBuffer.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/outputBuffer.h b/src/outputBuffer.h index 252a0a905..0af264c14 100644 --- a/src/outputBuffer.h +++ b/src/outputBuffer.h @@ -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); |