test/run_{filter,output}: use fmt

This commit is contained in:
Max Kellermann
2024-11-05 11:46:49 +01:00
parent 0676ab7f47
commit 76562fc093
3 changed files with 14 additions and 17 deletions

View File

@@ -5,6 +5,7 @@
#include "ReadFrames.hxx"
#include "cmdline/OptionDef.hxx"
#include "cmdline/OptionParser.hxx"
#include "lib/fmt/AudioFormatFormatter.hxx"
#include "lib/fmt/RuntimeError.hxx"
#include "fs/Path.hxx"
#include "fs/NarrowPath.hxx"
@@ -27,7 +28,6 @@
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
struct CommandLine {
FromNarrowPath config_path;
@@ -107,9 +107,7 @@ try {
auto filter = prepared_filter->Open(audio_format);
const AudioFormat out_audio_format = filter->GetOutAudioFormat();
fprintf(stderr, "audio_format=%s\n",
ToString(out_audio_format).c_str());
fmt::print(stderr, "audio_format={}\n", out_audio_format);
/* play */