summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorkleines Filmröllchen <filmroellchen@serenityos.org>2022-01-14 12:44:41 +0100
committerAndreas Kling <kling@serenityos.org>2022-01-14 21:37:23 +0100
commit84673278073a79ec83d367395c32396e6da6e537 (patch)
tree30c394a3d55b48a4516b50609f618a2f488d9469 /Userland
parent54ac4ba8cc2b2a27620b0bd13c556ede7257c12d (diff)
downloadserenity-84673278073a79ec83d367395c32396e6da6e537.zip
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.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Utilities/aplay.cpp3
1 files changed, 2 insertions, 1 deletions
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<int> 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");