diff --git a/src/lib/fmt/AudioFormatFormatter.hxx b/src/lib/fmt/AudioFormatFormatter.hxx index 30206ff1d..6838644c4 100644 --- a/src/lib/fmt/AudioFormatFormatter.hxx +++ b/src/lib/fmt/AudioFormatFormatter.hxx @@ -35,6 +35,16 @@ #include +template<> +struct fmt::formatter : formatter +{ + template + auto format(const SampleFormat format, FormatContext &ctx) { + return formatter::format(sample_format_to_string(format), + ctx); + } +}; + template<> struct fmt::formatter : formatter {