Commit d3f72d10 authored by Max Kellermann's avatar Max Kellermann Committed by Eric Wong

some documentation about OutputBuffer

git-svn-id: https://svn.musicpd.org/mpd/trunk@7245 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent efa46423
...@@ -29,13 +29,22 @@ ...@@ -29,13 +29,22 @@
#define OUTPUT_BUFFER_DC_STOP -1 #define OUTPUT_BUFFER_DC_STOP -1
#define OUTPUT_BUFFER_DC_SEEK -2 #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 { typedef struct _OutputBuffer {
char *volatile chunks; char *volatile chunks;
mpd_uint16 *volatile chunkSize; mpd_uint16 *volatile chunkSize;
mpd_uint16 *volatile bitRate; mpd_uint16 *volatile bitRate;
float *volatile times; float *volatile times;
/** the index of the first decoded chunk */
mpd_uint16 volatile begin; mpd_uint16 volatile begin;
/** the index after the last decoded chunk */
mpd_uint16 volatile end; mpd_uint16 volatile end;
AudioFormat audioFormat; AudioFormat audioFormat;
ConvState convState; ConvState convState;
} OutputBuffer; } OutputBuffer;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment