lib/fmt/AudioFormatFormatter: add formatter for SampleFormat
This commit is contained in:
parent
3e05cba30e
commit
5ff0bbd0f8
@ -35,6 +35,16 @@
|
||||
|
||||
#include <fmt/format.h>
|
||||
|
||||
template<>
|
||||
struct fmt::formatter<SampleFormat> : formatter<string_view>
|
||||
{
|
||||
template<typename FormatContext>
|
||||
auto format(const SampleFormat format, FormatContext &ctx) {
|
||||
return formatter<string_view>::format(sample_format_to_string(format),
|
||||
ctx);
|
||||
}
|
||||
};
|
||||
|
||||
template<>
|
||||
struct fmt::formatter<AudioFormat> : formatter<string_view>
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user