Teensy Audio 4.0 w/ Audio Adapter - Enabling Audio Shield Freezes

Status
Not open for further replies.
I am trying to run this code: https://github.com/makingsoundmachines/Faust-on-Teensy/tree/main/AdditiveSynth_Teensy

It compiles without any issues but with some print debugging the code stops executing once we call audioShield.enable()
Does the code stop without the print debugging? Where did you put the debugging?
Weirdly enough, the code will continue to execute if I reduce AudioMemory below 10 (but the oscillators sound extremely glitchy and artifacted)
With no memory or too little memory the code will run but see the result of allocate() return NULL. This is usually bad news
as it will lose data (as you can hear), but correct Audio library objects shouldn't crash when this happens as this condition should always be
checked for.
Any ideas on how to debug this further or why this is happening?
There's a bug, probably a crash due to a NULL pointer.

I had a quick look at that repo and the faustAdditive class doesn't check for NULL blocks coming in
from receiveReadOnly() - it should, as before AudioMemory is called there are audio intterupts flying
around and no blocks will be allocated.
 
Status
Not open for further replies.
Back
Top