diff options
author | Max Kellermann <max@musicpd.org> | 2017-01-17 22:04:31 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2017-01-17 22:18:21 +0100 |
commit | 39114f91a7c39c3da9a097f0bc63c08b2b74bf0f (patch) | |
tree | 6b76798ead5ebec8dbec2574e3185640677f9a11 /test/run_output.cxx | |
parent | 4f01387edfc522908758ca8f3ad0eb96cf841e02 (diff) |
AudioFormat: replace struct audio_format_string with class StringBuffer, return it
Diffstat (limited to 'test/run_output.cxx')
-rw-r--r-- | test/run_output.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/run_output.cxx b/test/run_output.cxx index 105a857e2..bf3c31205 100644 --- a/test/run_output.cxx +++ b/test/run_output.cxx @@ -33,6 +33,7 @@ #include "ReplayGainConfig.hxx" #include "pcm/PcmConvert.hxx" #include "filter/FilterRegistry.hxx" +#include "util/StringBuffer.hxx" #include "util/RuntimeError.hxx" #include "util/ScopeExit.hxx" #include "Log.hxx" @@ -86,9 +87,8 @@ run_output(AudioOutput *ao, AudioFormat audio_format) ao_plugin_open(ao, audio_format); AtScopeExit(ao) { ao_plugin_close(ao); }; - struct audio_format_string af_string; fprintf(stderr, "audio_format=%s\n", - audio_format_to_string(audio_format, &af_string)); + ToString(audio_format).c_str()); size_t frame_size = audio_format.GetFrameSize(); |