aboutsummaryrefslogtreecommitdiffstats
path: root/src/playerData.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/playerData.c')
-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;
}
-
-