fix(audio): use unsigned saturation for unsigned audio format

This commit is contained in:
raphaelcoeffic
2025-01-17 13:30:49 +01:00
committed by Raphael Coeffic
parent 0c5b15121f
commit 5a15ffb017
3 changed files with 19 additions and 6 deletions
+1 -1
View File
@@ -30,7 +30,7 @@
#define AUDIO_SAMPLE_RATE 32000
#define AUDIO_SAMPLE_FMT_S16 0
#define AUDIO_SAMPLE_FMT_U12 1
#define AUDIO_SAMPLE_FMT_U16 1
void audioSetVolume(uint8_t volume);