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.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/player_control.h') diff --git a/src/player_control.h b/src/player_control.h index 372c445db..b763cc389 100644 --- a/src/player_control.h +++ b/src/player_control.h @@ -20,6 +20,7 @@ #define PLAYER_H #include "notify.h" +#include "audio_format.h" #include @@ -86,9 +87,7 @@ struct player_control { volatile enum player_state state; volatile int8_t error; volatile uint16_t bitRate; - volatile int8_t bits; - volatile int8_t channels; - volatile uint32_t sampleRate; + struct audio_format audio_format; volatile float totalTime; volatile float elapsedTime; volatile float fileTime; @@ -157,9 +156,9 @@ double getPlayerTotalPlayTime(void); unsigned int getPlayerSampleRate(void); -int getPlayerBits(void); +unsigned getPlayerBits(void); -int getPlayerChannels(void); +unsigned getPlayerChannels(void); struct song * playerCurrentDecodeSong(void); -- cgit v1.2.3