From 84673278073a79ec83d367395c32396e6da6e537 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?kleines=20Filmr=C3=B6llchen?= Date: Fri, 14 Jan 2022 12:44:41 +0100 Subject: Utilities/aplay: Print format name under "Format" This is not only nice to see, but it additionally tells developers that the correct loader plugin was selected. --- Userland/Utilities/aplay.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Userland') diff --git a/Userland/Utilities/aplay.cpp b/Userland/Utilities/aplay.cpp index 47fdcbd8e8..72c26397f2 100644 --- a/Userland/Utilities/aplay.cpp +++ b/Userland/Utilities/aplay.cpp @@ -37,7 +37,8 @@ ErrorOr serenity_main(Main::Arguments arguments) auto loader = maybe_loader.release_value(); outln("\033[34;1m Playing\033[0m: {}", path); - outln("\033[34;1m Format\033[0m: {} Hz, {}-bit, {}", + outln("\033[34;1m Format\033[0m: {} {} Hz, {}-bit, {}", + loader->format_name(), loader->sample_rate(), loader->bits_per_sample(), loader->num_channels() == 1 ? "Mono" : "Stereo"); -- cgit v1.2.3