diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-02-27 01:35:23 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-02-27 01:35:23 +0000 |
commit | 9b1c5505973abffe1e3c3ab3ba7f84664fbf161f (patch) | |
tree | a4e393b11fce35995d218ccb451c165465c46a54 /src/player.c | |
parent | ce1d377d697036886ea13f9a66810bc70b748d90 (diff) | |
download | mpd-9b1c5505973abffe1e3c3ab3ba7f84664fbf161f.tar.gz mpd-9b1c5505973abffe1e3c3ab3ba7f84664fbf161f.tar.xz mpd-9b1c5505973abffe1e3c3ab3ba7f84664fbf161f.zip |
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
Diffstat (limited to 'src/player.c')
-rw-r--r-- | src/player.c | 18 |
1 files changed, 18 insertions, 0 deletions
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; +} |