From a94845ee00d3107af7ffbe89bf1ec46380ae24ff Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 26 Aug 2008 08:41:05 +0200 Subject: 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. --- src/outputBuffer.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/outputBuffer.h') 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); -- cgit v1.2.3