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:
+4
-2
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user