aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordvdli <70133153+dvdli@users.noreply.github.com>2023-09-04 10:33:51 +0800
committerGitHub <noreply@github.com>2023-09-04 10:33:51 +0800
commit7c467a1179cca66bb65a4a04f889319e4bfb9b3e (patch)
tree8aa7030bb1516f98744651b6604a95ad11b3effd
parent4fbaeef03cd1cb216e0f356c0433ca70f8b9c464 (diff)
parentf5368cdf08be50d8de01155e17a2dfdcb3c9beb3 (diff)
Merge pull request #237 from michaelforney/tinyplay-format
tinyplay: fix playback of 24-bit and 8-bit pcm
-rw-r--r--utils/tinyplay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/tinyplay.c b/utils/tinyplay.c
index 9f72bbb..d617074 100644
--- a/utils/tinyplay.c
+++ b/utils/tinyplay.c
@@ -112,7 +112,7 @@ static bool is_wave_file(const char *filetype)
return filetype != NULL && strcmp(filetype, "wav") == 0;
}
-static bool signed_pcm_bits_to_format(int bits)
+static enum pcm_format signed_pcm_bits_to_format(int bits)
{
switch (bits) {
case 8: