-
I'm not sure where or how to ask for help with this, so please let me know if more information is needed. I'm writing a sequencer-style program for the M5 Cardputer (ESP32-S3 based, 8MB Flash no PSRAM) and for that I've been developing a sound library which queues the playback of samples in memory with software mixing. Somehow this works fine on some programs and not in others, using the same MP firmware and same sound library. I'm currently testing with the nightly build Even more bizarrely, sometimes this issue seems to go away if I completely clear my ESP by overwriting the MicroPython firmware and uploading files from scratch, without changing them. I've tried to trace down this fault to anything deterministic and I simply can't. Does anyone have any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
ha, what bad timing. Just saw this pull request which replaces the I2S driver, and I was on a nightly just before that. Updated to |
Beta Was this translation helpful? Give feedback.
ha, what bad timing.
Just saw this pull request which replaces the I2S driver, and I was on a nightly just before that. Updated to
v1.23.0-preview.203.gd712feb68 on 2024-03-09
and it seems to be working better than ever now, wasn't my code at all! In fact, this also fixed the issues I found empirically that only the right channel would play on the mono I2S device (NS4168) that the cardputer uses, forcing me to useI2S.STEREO
and fill only the odd words in the buffer. Now mono works and I don't need to do any trickery!