aboutsummaryrefslogtreecommitdiffstats
path: root/src/player_control.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-10 14:47:58 +0200
committerMax Kellermann <max@duempel.org>2008-10-10 14:47:58 +0200
commit0b4dfae22e883d376bc44e1e2d78f201d045970b (patch)
tree755cbfeff4158a09c6970824612488b3702a8c7b /src/player_control.c
parent8c33b64847c5ead45ade665afc9ad16a04a693f2 (diff)
downloadmpd-0b4dfae22e883d376bc44e1e2d78f201d045970b.tar.gz
mpd-0b4dfae22e883d376bc44e1e2d78f201d045970b.tar.xz
mpd-0b4dfae22e883d376bc44e1e2d78f201d045970b.zip
player: added player_control.audio_format
This replaces the attributes bits, channels, sampleRate.
Diffstat (limited to 'src/player_control.c')
-rw-r--r--src/player_control.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/player_control.c b/src/player_control.c
index 0339af5de..efdab7208 100644
--- a/src/player_control.c
+++ b/src/player_control.c
@@ -256,17 +256,17 @@ double getPlayerTotalPlayTime(void)
unsigned int getPlayerSampleRate(void)
{
- return pc.sampleRate;
+ return pc.audio_format.sample_rate;
}
-int getPlayerBits(void)
+unsigned getPlayerBits(void)
{
- return pc.bits;
+ return pc.audio_format.bits;
}
-int getPlayerChannels(void)
+unsigned getPlayerChannels(void)
{
- return pc.channels;
+ return pc.audio_format.channels;
}
/* this actually creates a dupe of the current metadata */