diff options
-rw-r--r-- | esp32/lego-piano.ino | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/esp32/lego-piano.ino b/esp32/lego-piano.ino index 120792e..01b3bb7 100644 --- a/esp32/lego-piano.ino +++ b/esp32/lego-piano.ino @@ -160,7 +160,7 @@ void loop() { // we don't want to drop an element from the buffer if we then // can't write it! so we peek at the buffer, try to write, and pop // if successful - value=buffer[0]; + value=buffer[0] + 32768; // tsf produces *signed* shorts, i2s wants *unsigned* i2s_write(i2sPort, &value, sizeof(value), &written, 0); if (written > 0) buffer.pop(value); } |