corrected bit shift from 32 bit to 24 bit
parent
cb073b2d5b
commit
1545f60d78
|
|
@ -53,8 +53,8 @@ void loop() {
|
||||||
int32_t right32 = buffer[i];
|
int32_t right32 = buffer[i];
|
||||||
int32_t left32 = buffer[i + 1];
|
int32_t left32 = buffer[i + 1];
|
||||||
|
|
||||||
int16_t right16 = (int16_t)(right32 >> 16);
|
int16_t right16 = (int16_t)(right32 >> 14);
|
||||||
int16_t left16 = (int16_t)(left32 >> 16);
|
int16_t left16 = (int16_t)(left32 >> 14);
|
||||||
|
|
||||||
block[blockIndex++] = left16;
|
block[blockIndex++] = left16;
|
||||||
block[blockIndex++] = right16;
|
block[blockIndex++] = right16;
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
parec -d esp32.monitor --file-format=wav > test.wav
|
||||||
Loading…
Reference in New Issue