diff options
author | Max Kellermann <max@duempel.org> | 2008-08-26 08:41:05 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-08-26 08:41:05 +0200 |
commit | a94845ee00d3107af7ffbe89bf1ec46380ae24ff (patch) | |
tree | a7074bf912585c2deab455e0046d3c9ab080562a /src/outputBuffer.h | |
parent | 15c9352bb632277fc6e787114ae5af60e6dc8597 (diff) | |
download | mpd-a94845ee00d3107af7ffbe89bf1ec46380ae24ff.tar.gz mpd-a94845ee00d3107af7ffbe89bf1ec46380ae24ff.tar.xz mpd-a94845ee00d3107af7ffbe89bf1ec46380ae24ff.zip |
moved global variable "ob" to outputBuffer.h
This releases several include file dependencies. As a side effect,
"CHUNK_SIZE" isn't defined by decoder_api.h anymore, so we have to
define it directly in the plugins which need it. It just isn't worth
it to add it to the decoder plugin API.
Diffstat (limited to 'src/outputBuffer.h')
-rw-r--r-- | src/outputBuffer.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/outputBuffer.h b/src/outputBuffer.h index 624b6dbc7..512334d90 100644 --- a/src/outputBuffer.h +++ b/src/outputBuffer.h @@ -36,7 +36,7 @@ typedef struct _OutputBufferChunk { * A ring set of buffers where the decoder appends data after the end, * and the player consumes data from the beginning. */ -typedef struct _OutputBuffer { +struct output_buffer { ob_chunk *chunks; unsigned int size; @@ -54,7 +54,9 @@ typedef struct _OutputBuffer { AudioFormat audioFormat; Notify *notify; -} OutputBuffer; +}; + +extern struct output_buffer ob; void ob_init(unsigned int size, Notify *notify); |