aboutsummaryrefslogtreecommitdiffstats
path: root/src/outputBuffer.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-26 08:27:05 +0200
committerMax Kellermann <max@duempel.org>2008-08-26 08:27:05 +0200
commit5df6ff8d22115f8588c321527bd4e33624306422 (patch)
tree98b285a1292601f04ce7720abec6023ceeb97da3 /src/outputBuffer.h
parent2a83ccdb8f71d224341ea5a6ddbc002693d887fb (diff)
downloadmpd-5df6ff8d22115f8588c321527bd4e33624306422.tar.gz
mpd-5df6ff8d22115f8588c321527bd4e33624306422.tar.xz
mpd-5df6ff8d22115f8588c321527bd4e33624306422.zip
added OutputBuffer.notify
OutputBuffer should be a more generic low-level library, without dependencies to the other headers. This patch adds the field "notify", which is used to signal the player thread. It is passed in the constructor, and removes the need to compile with the decode.h header.
Diffstat (limited to 'src/outputBuffer.h')
-rw-r--r--src/outputBuffer.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/outputBuffer.h b/src/outputBuffer.h
index ebbc0d228..fb3b4302d 100644
--- a/src/outputBuffer.h
+++ b/src/outputBuffer.h
@@ -19,6 +19,7 @@
#ifndef OUTPUT_BUFFER_H
#define OUTPUT_BUFFER_H
+#include "notify.h"
#include "pcm_utils.h"
#define OUTPUT_BUFFER_DC_STOP -1
@@ -55,9 +56,11 @@ typedef struct _OutputBuffer {
AudioFormat audioFormat;
ConvState convState;
+
+ Notify *notify;
} OutputBuffer;
-void ob_init(unsigned int size);
+void ob_init(unsigned int size, Notify *notify);
void ob_free(void);