aboutsummaryrefslogtreecommitdiffstats
path: root/src/outputBuffer_sequence.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/outputBuffer_sequence.h (renamed from src/playerData.h)25
1 files changed, 10 insertions, 15 deletions
diff --git a/src/playerData.h b/src/outputBuffer_sequence.h
index cf7f72cf0..25181425f 100644
--- a/src/playerData.h
+++ b/src/outputBuffer_sequence.h
@@ -16,20 +16,15 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#ifndef PLAYER_DATA_H
-#define PLAYER_DATA_H
+#ifndef OUTPUT_BUFFER_SEQUENCE_H
+#define OUTPUT_BUFFER_SEQUENCE_H
-#include "audio.h"
-#include "player.h"
-#include "decode.h"
-#include "mpd_types.h"
-#include "outputBuffer.h"
-
-extern unsigned int buffered_before_play;
-extern PlayerControl pc;
-extern DecoderControl dc;
-extern OutputBuffer ob;
-
-void initPlayerData(void);
+/*
+ * prevent the decoder thread from being more than one song
+ * ahead of the output buffer
+ */
+void ob_seq_enter(void);
+void ob_seq_leave(void);
+void ob_seq_wait(void);
-#endif
+#endif /* OUTPUT_BUFFER_SEQUENCE_H */