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.

If you'd like to see the code, it's up at
https://github.com/starakaj/gen2ios

Help very much appreciated,
-Sam
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to