diff options
author | Max Kellermann <max@duempel.org> | 2008-10-10 14:51:22 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-10 14:51:22 +0200 |
commit | 5de7521900285dab2ffa8b9a0af6f883494686b5 (patch) | |
tree | 4edb7857ca57684bdb774bbb7c43f4f7b5dab831 /src/player_control.h | |
parent | 0b4dfae22e883d376bc44e1e2d78f201d045970b (diff) | |
download | mpd-5de7521900285dab2ffa8b9a0af6f883494686b5.tar.gz mpd-5de7521900285dab2ffa8b9a0af6f883494686b5.tar.xz mpd-5de7521900285dab2ffa8b9a0af6f883494686b5.zip |
player: added player_get_audio_format()
player_get_audio_format() replaces getPlayerSampleRate(),
getPlayerBits(), getPlayerChannels().
Diffstat (limited to '')
-rw-r--r-- | src/player_control.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/player_control.h b/src/player_control.h index b763cc389..5b3c4a5d2 100644 --- a/src/player_control.h +++ b/src/player_control.h @@ -154,11 +154,11 @@ void setPlayerSoftwareVolume(int volume); double getPlayerTotalPlayTime(void); -unsigned int getPlayerSampleRate(void); - -unsigned getPlayerBits(void); - -unsigned getPlayerChannels(void); +static inline const struct audio_format * +player_get_audio_format(void) +{ + return &pc.audio_format; +} struct song * playerCurrentDecodeSong(void); |