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.
This commit is contained in:
Max Kellermann
2008-08-26 08:41:05 +02:00
parent 15c9352bb6
commit a94845ee00
7 changed files with 14 additions and 6 deletions
+4 -2
View File
@@ -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);