I’ve been working on FIR filter that should be suitable for frequency modulation, since calculating coefficients on-the-fly proved being way too heavy, I thought of making a coefficients lookup table.
Then enters my doubt. What would be better, allocating a bunch of AudioBuffers to hold the components, letting the AudioBuffer do the memory allocation, or allocating a single HeapBlock and assigning offsets to the AudioBuffer?
The memory allocation performance isn’t key, since it will be done out of the audio thread, the goal is to get the best read/copy performance.
I tried doing some profiling, but my results were inconclusive. Does anyone has some advice or insight with this?
Thanks a lot,