aboutsummaryrefslogtreecommitdiffstats
path: root/src/player_control.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/player_control.c
parent5e51fa020dcf634d2c5442ed6c5de108420c7574 (diff)
downloadmpd-e2c8b960de29e4fc45f16d980b9ef370de9951d3.tar.gz
mpd-e2c8b960de29e4fc45f16d980b9ef370de9951d3.tar.xz
mpd-e2c8b960de29e4fc45f16d980b9ef370de9951d3.zip
moved code to pc_init(), dc_init()
Diffstat (limited to 'src/player_control.c')
-rw-r--r--src/player_control.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/player_control.c b/src/player_control.c
index 93dd407e8..13310a6c5 100644
--- a/src/player_control.c
+++ b/src/player_control.c
@@ -25,6 +25,19 @@
struct player_control pc;
+void pc_init(unsigned int buffered_before_play)
+{
+ pc.buffered_before_play = buffered_before_play;
+ 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 = 0;
+ pc.softwareVolume = 1000;
+}
+
static void set_current_song(Song *song)
{
assert(song != NULL);