aboutsummaryrefslogtreecommitdiffstats
path: root/src/outputBuffer.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-04-12 04:08:35 +0000
committerEric Wong <normalperson@yhbt.net>2008-04-12 04:08:35 +0000
commitd3f72d102325ff8ad1f41087f9327ae9fa228b6b (patch)
tree3b8775bebbed84974e709fbd7ff4932b45cbf60c /src/outputBuffer.h
parentefa464235613c6f3bfd40179d3676dd913feeafe (diff)
downloadmpd-d3f72d102325ff8ad1f41087f9327ae9fa228b6b.tar.gz
mpd-d3f72d102325ff8ad1f41087f9327ae9fa228b6b.tar.xz
mpd-d3f72d102325ff8ad1f41087f9327ae9fa228b6b.zip
some documentation about OutputBuffer
git-svn-id: https://svn.musicpd.org/mpd/trunk@7245 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/outputBuffer.h')
-rw-r--r--src/outputBuffer.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/outputBuffer.h b/src/outputBuffer.h
index 6ab171879..4d480e08a 100644
--- a/src/outputBuffer.h
+++ b/src/outputBuffer.h
@@ -29,13 +29,22 @@
#define OUTPUT_BUFFER_DC_STOP -1
#define OUTPUT_BUFFER_DC_SEEK -2
+/**
+ * A ring set of buffers where the decoder appends data after the end,
+ * and the player consumes data from the beginning.
+ */
typedef struct _OutputBuffer {
char *volatile chunks;
mpd_uint16 *volatile chunkSize;
mpd_uint16 *volatile bitRate;
float *volatile times;
+
+ /** the index of the first decoded chunk */
mpd_uint16 volatile begin;
+
+ /** the index after the last decoded chunk */
mpd_uint16 volatile end;
+
AudioFormat audioFormat;
ConvState convState;
} OutputBuffer;