Skip to content
Discussion options

You must be logged in to vote

Microcontrollers are slow and have only a limited amout of memory. So the challange is always to make things fit with the available memory and computing resources!

Build you sketch in several steps and test each step speparatly. I would start with a simple mixing of files to figure out the max sample rate (using files vs PSRAM vs PROGMEM)

A couple of hints:

  • Use a fast disk access: SDMMC 4 bit gives you max thruput
  • WAV requires a lot of space - double check if you have enough PSRAM to store what you need. If the data does not change you can also store it in PROGMEM. This will definitly save you from the disk overhead.
  • If the mixing can't provide the data fast enough for plyback: reduce th…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dandeliondandy
Comment options

Answer selected by pschatzmann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants