aboutsummaryrefslogtreecommitdiffstats
path: root/src/outputBuffer.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-04-12 04:18:04 +0000
committerEric Wong <normalperson@yhbt.net>2008-04-12 04:18:04 +0000
commite9e557c8d1562d0215e4e4a4c2f361457aec43a9 (patch)
tree13254e8a32a2d1ed4eedd750df0115601bd3004c /src/outputBuffer.h
parentb2819e12e7abe9cbe918a68eb9f917d2711402fa (diff)
downloadmpd-e9e557c8d1562d0215e4e4a4c2f361457aec43a9.tar.gz
mpd-e9e557c8d1562d0215e4e4a4c2f361457aec43a9.tar.xz
mpd-e9e557c8d1562d0215e4e4a4c2f361457aec43a9.zip
pass buffered_chunks to initOutputBuffer()
Try to make OutputBuffer self-contained, without depending on a global variable. git-svn-id: https://svn.musicpd.org/mpd/trunk@7310 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/outputBuffer.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/outputBuffer.h b/src/outputBuffer.h
index 70fff1d08..ac2ffac3f 100644
--- a/src/outputBuffer.h
+++ b/src/outputBuffer.h
@@ -46,6 +46,8 @@ typedef struct _OutputBufferChunk {
typedef struct _OutputBuffer {
OutputBufferChunk *chunks;
+ unsigned int size;
+
/** the index of the first decoded chunk */
mpd_uint16 volatile begin;
@@ -58,7 +60,7 @@ typedef struct _OutputBuffer {
ConvState convState;
} OutputBuffer;
-void initOutputBuffer(OutputBuffer * cb);
+void initOutputBuffer(OutputBuffer * cb, unsigned int size);
void clearOutputBuffer(OutputBuffer * cb);