AudioKit / AudioKitSynthOne

AudioKit Synth One: Open-Source iOS Synthesizer App
http://audiokitpro.com/synth
MIT License
1.67k stars 217 forks source link

Keep weak reference to S1AudioUnit #79

Closed sieren closed 5 years ago

sieren commented 5 years ago

We are having a retain cycle here. AudioUnit retains the DSPKernel, and the DSPKernel retains the Audiounit. Thus these will never properly deallocate.

@aure @marcussatellite : while trying to get to the root of the AEMessageQueue issues, I found this little issue. It probably doesnt change much for the user because S1AudioUnit and the DSPKernel are almost always alive.