mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:37:34 +00:00
aplay: s/Sample/Progress/ in the output. It's all in the details!
This commit is contained in:
parent
66f8ea92cb
commit
7356fd389f
1 changed files with 3 additions and 3 deletions
|
@ -16,12 +16,12 @@ int main(int argc, char** argv)
|
||||||
a_conn.handshake();
|
a_conn.handshake();
|
||||||
AWavLoader loader(argv[1]);
|
AWavLoader loader(argv[1]);
|
||||||
|
|
||||||
printf("\033[34;1mPlaying\033[0m: %s\n", argv[1]);
|
printf("\033[34;1m Playing\033[0m: %s\n", argv[1]);
|
||||||
printf("\033[34;1m Format\033[0m: %u Hz, %u-bit, %s\n",
|
printf("\033[34;1m Format\033[0m: %u Hz, %u-bit, %s\n",
|
||||||
loader.sample_rate(),
|
loader.sample_rate(),
|
||||||
loader.bits_per_sample(),
|
loader.bits_per_sample(),
|
||||||
loader.num_channels() == 1 ? "Mono" : "Stereo");
|
loader.num_channels() == 1 ? "Mono" : "Stereo");
|
||||||
printf("\033[34;1m Sample\033[0m: \033[s");
|
printf("\033[34;1mProgress\033[0m: \033[s");
|
||||||
for (;;) {
|
for (;;) {
|
||||||
auto samples = loader.get_more_samples();
|
auto samples = loader.get_more_samples();
|
||||||
if (!samples)
|
if (!samples)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue