corrected bit shift from 32 bit to 24 bit

master
jake 2025-11-16 06:09:49 +00:00
parent cb073b2d5b
commit 1545f60d78
3 changed files with 3 additions and 2 deletions

View File

@ -53,8 +53,8 @@ void loop() {
int32_t right32 = buffer[i];
int32_t left32 = buffer[i + 1];
int16_t right16 = (int16_t)(right32 >> 16);
int16_t left16 = (int16_t)(left32 >> 16);
int16_t right16 = (int16_t)(right32 >> 14);
int16_t left16 = (int16_t)(left32 >> 14);
block[blockIndex++] = left16;
block[blockIndex++] = right16;

BIN
test.wav

Binary file not shown.

1
test_record.sh Executable file
View File

@ -0,0 +1 @@
parec -d esp32.monitor --file-format=wav > test.wav