Memory management for (audio) buffers in plugins

I just noticed that none of the official plugins appear to free memory that was used for audio buffers. Am I ever expected to free such memory when the plugin is unloaded?

Two plugins can be loaded at a time, and more plugins can be chosen at runtime using OwlNest. What happens to allocated memory as plugins are switched out?

(Theoretically the same AudioBuffer address space could be multiply allocated across plugins as long as only one plugin runs at a time.)

Memory allocated with createMemoryBuffer() is managed and doesn’t have to be (shouldn’t be!) freed. I’ll put a note in the wiki.
In OwlSim, the memory is allocated on the heap and released when the patch dies, on the pedal the memory is allocated on the external SRAM and re-used when a patch is swapped out.

Oh that’s neat, thanks for the info!

on the pedal the memory is allocated on the external SRAM and re-used when a patch is swapped out

Can you tell me how malloc use external SRAM for memory allocation?
In owl ware source code how you are doing this?

I need to know how to modify/configure source code to allow malloc to use External SRAM instead of embedded SRAM for STM32 cpu.

thanks & regards

Duplicate of this.