From 9b1c5505973abffe1e3c3ab3ba7f84664fbf161f Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Fri, 27 Feb 2004 01:35:23 +0000 Subject: add xfade and audio to status, remove crossfade no args options git-svn-id: https://svn.musicpd.org/mpd/trunk@75 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/player.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/player.c') diff --git a/src/player.c b/src/player.c index 3b3bf250c..6bc671002 100644 --- a/src/player.c +++ b/src/player.c @@ -414,3 +414,21 @@ double getPlayerTotalPlayTime() { return pc->totalPlayTime+pc->elapsedTime-pc->beginTime; } + +unsigned int getPlayerSampleRate() { + PlayerControl * pc = &(getPlayerData()->playerControl); + + return pc->sampleRate; +} + +int getPlayerBits() { + PlayerControl * pc = &(getPlayerData()->playerControl); + + return pc->bits; +} + +int getPlayerChannels() { + PlayerControl * pc = &(getPlayerData()->playerControl); + + return pc->channels; +} -- cgit v1.2.3