• Audio
  • What is maximum .wav file size for AudioFileUtilities::load()?

Hi, I'm wondering when do we decide to use something other than AudioFileUtilities::load()? I would like to play 8 of 2MB .wav files at the same time on a Bela Mini. Does it make sense to use it?

If they all fit in RAM, then you can load it all in RAM (using AudioFileUtilities::load()). There is 512 MB on board, you cannot expect to use them all for your program, but at least 200 should be always available. If they don't fit, then you should consider streaming it from disk a chunk at a time using the AudioFileReader class.