aboutsummaryrefslogtreecommitdiffstats
path: root/src/playerData.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-26 08:45:14 +0200
committerMax Kellermann <max@duempel.org>2008-08-26 08:45:14 +0200
commite2c8b960de29e4fc45f16d980b9ef370de9951d3 (patch)
treebbe802c9efd9b677d91c9d7052382af147e5190f /src/playerData.c
parent5e51fa020dcf634d2c5442ed6c5de108420c7574 (diff)
downloadmpd-e2c8b960de29e4fc45f16d980b9ef370de9951d3.tar.gz
mpd-e2c8b960de29e4fc45f16d980b9ef370de9951d3.tar.xz
mpd-e2c8b960de29e4fc45f16d980b9ef370de9951d3.zip
moved code to pc_init(), dc_init()
Diffstat (limited to '')
-rw-r--r--src/playerData.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/src/playerData.c b/src/playerData.c
index 593a1dbd1..948c59570 100644
--- a/src/playerData.c
+++ b/src/playerData.c
@@ -18,7 +18,6 @@
#include "playerData.h"
#include "player_control.h"
-#include "decoder_control.h"
#include "outputBuffer.h"
#include "conf.h"
#include "log.h"
@@ -27,15 +26,14 @@
#define DEFAULT_BUFFER_SIZE 2048
#define DEFAULT_BUFFER_BEFORE_PLAY 10
+unsigned int buffered_chunks;
unsigned int buffered_before_play;
void initPlayerData(void)
{
float perc = DEFAULT_BUFFER_BEFORE_PLAY;
char *test;
- int crossfade = 0;
size_t bufferSize = DEFAULT_BUFFER_SIZE;
- unsigned int buffered_chunks;
ConfigParam *param;
param = getConfigParam(CONF_AUDIO_BUFFER_SIZE);
@@ -71,22 +69,4 @@ void initPlayerData(void)
if (buffered_before_play > buffered_chunks) {
buffered_before_play = buffered_chunks;
}
-
- ob_init(buffered_chunks, &pc.notify);
-
- notify_init(&pc.notify);
- pc.command = PLAYER_COMMAND_NONE;
- pc.error = PLAYER_ERROR_NOERROR;
- pc.state = PLAYER_STATE_STOP;
- pc.queueState = PLAYER_QUEUE_BLANK;
- pc.queueLockState = PLAYER_QUEUE_UNLOCKED;
- pc.crossFade = crossfade;
- pc.softwareVolume = 1000;
-
- notify_init(&dc.notify);
- dc.state = DECODE_STATE_STOP;
- dc.command = DECODE_COMMAND_NONE;
- dc.error = DECODE_ERROR_NOERROR;
}
-
-