I think I may have an exception, because the particular code which is temporarily using more blocks uses only input and output queues.
All of the signal processing is done in the sketch.
I am going back and see if I can throttle down the maximum...
No, it won’t free blocks. In fact it’ll waste all but the last-created set. If you look at the contents of AudioStream.h you’ll see it’s not a function but a macro which defines a static set of audio blocks and then initialises them.
Assuming...
Maybe I have to create a class which inherits from AudioStream? Then make a new method to free "num" blocks?
There are protected methods which do this, but for only a single block. Since "initialize_memory()" is used by the AudioMemory macro...
I am working on the T41 radio project which uses the Teensy 4.1.
What I want to do is conserve memory, but I have a function called only occasionally which uses a lot of audio memory.
So I want to temporarily increase the number of audio blocks...