From d1e7b4e38136f9342aad76c685a13adf0e69f869 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 3 Aug 2013 21:00:50 +0200 Subject: audio_format: convert to C++ --- src/PlayerCommands.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/PlayerCommands.cxx') diff --git a/src/PlayerCommands.cxx b/src/PlayerCommands.cxx index 1c1c346b7..0d4089940 100644 --- a/src/PlayerCommands.cxx +++ b/src/PlayerCommands.cxx @@ -31,7 +31,7 @@ #include "protocol/ArgParser.hxx" extern "C" { -#include "audio_format.h" +#include "AudioFormat.hxx" } #include "replay_gain_config.h" @@ -178,12 +178,12 @@ handle_status(Client *client, player_status.elapsed_time, player_status.bit_rate); - if (audio_format_defined(&player_status.audio_format)) { + if (player_status.audio_format.IsDefined()) { struct audio_format_string af_string; client_printf(client, COMMAND_STATUS_AUDIO ": %s\n", - audio_format_to_string(&player_status.audio_format, + audio_format_to_string(player_status.audio_format, &af_string)); } } -- cgit v1.2.3