diff options
author | Max Kellermann <max@duempel.org> | 2008-11-02 14:15:47 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-02 14:15:47 +0100 |
commit | 8964c69a643108a4b4828c99111517c0f6f8e3d0 (patch) | |
tree | f74d3a7af2f79393fe7471bcdc2737e3cd801bd3 /src/pipe.h | |
parent | 767b4c95bdb468429232a96242bd73b8e92d8660 (diff) | |
download | mpd-8964c69a643108a4b4828c99111517c0f6f8e3d0.tar.gz mpd-8964c69a643108a4b4828c99111517c0f6f8e3d0.tar.xz mpd-8964c69a643108a4b4828c99111517c0f6f8e3d0.zip |
music_pipe: renamed struct output_buffer to struct music_pipe
.. and rename ob_chunk to struct music_chunk.
Diffstat (limited to 'src/pipe.h')
-rw-r--r-- | src/pipe.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/pipe.h b/src/pipe.h index 477b1e358..bc25ec820 100644 --- a/src/pipe.h +++ b/src/pipe.h @@ -27,19 +27,19 @@ /* pick 1020 since its devisible for 8,16,24, and 32-bit audio */ #define CHUNK_SIZE 1020 -typedef struct _OutputBufferChunk { +struct music_chunk { uint16_t chunkSize; uint16_t bitRate; float times; char data[CHUNK_SIZE]; -} ob_chunk; +}; /** * A ring set of buffers where the decoder appends data after the end, * and the player consumes data from the beginning. */ -struct output_buffer { - ob_chunk *chunks; +struct music_pipe { + struct music_chunk *chunks; unsigned int size; @@ -58,7 +58,7 @@ struct output_buffer { struct notify *notify; }; -extern struct output_buffer ob; +extern struct music_pipe ob; void ob_init(unsigned int size, struct notify *notify); @@ -100,7 +100,8 @@ unsigned ob_available(void); */ int ob_absolute(const unsigned relative); -ob_chunk * ob_get_chunk(const unsigned i); +struct music_chunk * +ob_get_chunk(const unsigned i); /** * Append a data block to the buffer. |