summaryrefslogtreecommitdiff
path: root/test/run_filter.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-01-17 22:04:31 +0100
committerMax Kellermann <max@musicpd.org>2017-01-17 22:18:21 +0100
commit39114f91a7c39c3da9a097f0bc63c08b2b74bf0f (patch)
tree6b76798ead5ebec8dbec2574e3185640677f9a11 /test/run_filter.cxx
parent4f01387edfc522908758ca8f3ad0eb96cf841e02 (diff)
AudioFormat: replace struct audio_format_string with class StringBuffer, return it
Diffstat (limited to 'test/run_filter.cxx')
-rw-r--r--test/run_filter.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/run_filter.cxx b/test/run_filter.cxx
index 0fa6081a3..2251cf1c4 100644
--- a/test/run_filter.cxx
+++ b/test/run_filter.cxx
@@ -28,6 +28,7 @@
#include "pcm/Volume.hxx"
#include "mixer/MixerControl.hxx"
#include "util/ConstBuffer.hxx"
+#include "util/StringBuffer.hxx"
#include "system/FatalError.hxx"
#include "Log.hxx"
@@ -62,7 +63,6 @@ load_filter(const char *name)
int main(int argc, char **argv)
try {
- struct audio_format_string af_string;
char buffer[4096];
if (argc < 3 || argc > 4) {
@@ -97,7 +97,7 @@ try {
const AudioFormat out_audio_format = filter->GetOutAudioFormat();
fprintf(stderr, "audio_format=%s\n",
- audio_format_to_string(out_audio_format, &af_string));
+ ToString(out_audio_format).c_str());
/* play */