logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

0003-tinyplay-fix-playback-of-24-bit-and-8-bit-pcm.patch (935B)


  1. From ecc8e52555cfbbbb14269880dea48cf0bf42ab50 Mon Sep 17 00:00:00 2001
  2. From: Michael Forney <mforney@mforney.org>
  3. Date: Mon, 31 Oct 2022 00:07:42 -0700
  4. Subject: [PATCH] tinyplay: fix playback of 24-bit and 8-bit pcm
  5. The bits-to-format function returned bool, which happened to work
  6. for PCM_FORMAT_S16_LE (0) and PCM_FORMAT_S32_LE (1). However, all
  7. other formats were incorrectly mapped to PCM_FORMAT_S32_LE. Return
  8. enum pcm_format instead.
  9. ---
  10. utils/tinyplay.c | 2 +-
  11. 1 file changed, 1 insertion(+), 1 deletion(-)
  12. diff --git a/utils/tinyplay.c b/utils/tinyplay.c
  13. index 9f72bbb..d617074 100644
  14. --- a/utils/tinyplay.c
  15. +++ b/utils/tinyplay.c
  16. @@ -112,7 +112,7 @@ static bool is_wave_file(const char *filetype)
  17. return filetype != NULL && strcmp(filetype, "wav") == 0;
  18. }
  19. -static bool signed_pcm_bits_to_format(int bits)
  20. +static enum pcm_format signed_pcm_bits_to_format(int bits)
  21. {
  22. switch (bits) {
  23. case 8:
  24. --
  25. 2.37.3