aboutsummaryrefslogtreecommitdiffstats
path: root/src/playerData.h
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-05-07 15:58:04 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-05-07 15:58:04 +0000
commit3794126e5609112d68a2e0c9cbae5a923da301b6 (patch)
treee44ad37c6b27f6f4a52b63c6c1057a860f93ff80 /src/playerData.h
parent9196023f14acf37ee47ac7798029270476d7d3cb (diff)
downloadmpd-3794126e5609112d68a2e0c9cbae5a923da301b6.tar.gz
mpd-3794126e5609112d68a2e0c9cbae5a923da301b6.tar.xz
mpd-3794126e5609112d68a2e0c9cbae5a923da301b6.zip
new OutputBuffer abstraction stuff, implemented for mp3, now need to
implement in other decoders git-svn-id: https://svn.musicpd.org/mpd/trunk@940 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/playerData.h')
-rw-r--r--src/playerData.h16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/playerData.h b/src/playerData.h
index eb69ad0fc..387eb07cf 100644
--- a/src/playerData.h
+++ b/src/playerData.h
@@ -25,6 +25,7 @@
#include "player.h"
#include "decode.h"
#include "mpd_types.h"
+#include "outputBuffer.h"
/* pick 1020 since its devisible for 8,16,24, and 32-bit audio */
#define CHUNK_SIZE 1020
@@ -32,20 +33,8 @@
extern int buffered_before_play;
extern int buffered_chunks;
-typedef struct _Buffer {
- char * volatile chunks;
- mpd_uint16 * volatile chunkSize;
- mpd_uint16 * volatile bitRate;
- float * volatile times;
- mpd_sint16 volatile begin;
- mpd_sint16 volatile end;
- mpd_sint16 volatile next;
- mpd_sint8 volatile wrap;
- float totalTime;
-} Buffer;
-
typedef struct _PlayerData {
- Buffer buffer;
+ OutputBuffer buffer;
AudioFormat audioFormat;
PlayerControl playerControl;
DecoderControl decoderControl;
@@ -54,7 +43,6 @@ typedef struct _PlayerData {
void initPlayerData();
PlayerData * getPlayerData();
-Buffer * getBuffer();
void freePlayerData();