Dynamic audio unit app extensions
Dynamic audio unit app extensions
- Subject: Dynamic audio unit app extensions
- From: Sam Tarakajian <email@hidden>
- Date: Sun, 28 Aug 2016 16:38:33 -0400
Hi list,
I'm trying to export dsp code from Max/MSP to a v3 audio unit. Happily, I've more or less gotten things working for monophonic sound. I started by copying the Filter Demo application. Max exports a DSP kernel, and I've modified the Filter Demo code to pass audio through that kernel. Max also exports parameters and parameter names, and the exported audio unit gets its parameter names from the ones that Max exposes. So now, I can push exportcode in Max, build a new AppExtension, and run a host application that uses the SimplePlayEngine to pass audio through DSP defined in Max.
What I'd really like would be for my host application to seamlessly compile and swap in a new audio unit every time I export new code from Max. I've tried running xcodebuild, targeting the AppExtension, and then watching the .appex file for changes from within the host application. Then, whenever there's a change, I load a new audio unit and set the SimplePlayEngine accordingly. The issue, I think, is that the new audio unit has the same component description as the old one, so the new audio unit that I load ends up pointing to the old one each time.
I was thinking, maybe there's some way to un-register the audio component, or to somehow use the version number to force the system to find the updated audio unit. But I thought I'd ask before trying anything too hacked.
Help very much appreciated,
-Sam
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden