From 0b4dfae22e883d376bc44e1e2d78f201d045970b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 10 Oct 2008 14:47:58 +0200 Subject: player: added player_control.audio_format This replaces the attributes bits, channels, sampleRate. --- src/player_control.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/player_control.c') 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 */ -- cgit v1.2.3