Replies: 3 comments 2 replies
-
Thank you for your contribution. I don't intend to open a second signal source any time soon. But I could imagine using the 2nd I2S channel as an input for a microphone or opening a second file on the SD card (SD_MMC allows this) and adding up the signals. |
Beta Was this translation helpful? Give feedback.
-
Thanks Wolle for the the reply. We in fact already made a wavplayer capable of polyphonic feedback for the nRF52 chipset and now try to port the code to the ESP32. On the nRF the driver was quite simple, so a double buffering scheme had to be implemented and alternatingly fed to the I2S, once one of the buffer content was consumed. Reading in multiple files from the SD can be done and then all sources added together (weighted with individually selectable volume). At the end the mixed buffer needs to be fed to the I2S. On the ESP32 the driver seems more capable, but also not easy to understand (for me at least). I've been spending a lot of time lately to analyse your excellent library, but I'm still not sure I understand how to pass the samples to the I2S. I made a double buffer with 512 samples each in the config (dma_buf_count and dma_buf_len), I guess this natively replaces the double buffering. However as to how to pass it to I2S I'm in doubt:
|
Beta Was this translation helpful? Give feedback.
-
I would also be interested in this. My use case would be mixing the station ID (e.g., from TTS or a SPIFFS file) into a running web radio stream when switching channels. |
Beta Was this translation helpful? Give feedback.
-
First off thanks a lot for the tremendous effort you and all supporters put into this project! Special thanks for the quick feedback in case of issues, thumbs up!
An idea I have for an ESP32 based project involves playing multiple sound files mixed together at the same time. Ideally these sound files should be able to come from different sources, like streaming a web radio and mixing in a wav file stored on an SD-card. Is it possible with this library?
Beta Was this translation helpful? Give feedback.
All reactions