Dear core-audio list team member, I am currently evaluating Audio Unit Extension support on OS X from a plugin vendor perspective.
I would like to experiment the *LoadInProcess* feature of audio unit extension announced in WWDC 2015 Audio Unit Extension presentation <https://developer.apple.com/videos/play/wwdc2015/508/>. According to Sierra AudioToolbox's AudioComponent.h header file: Most component instances are loaded into the calling process. A version 3 audio unit, however, can be loaded into a separate extension service process, and this is the default behavior for these components. To be able to load one in-process requires that the developer package the audio unit in a bundle separate from the application extension, since an extension's main binary cannot be dynamically loaded into another process. An OS X host may request in-process loading of such audio units using kAudioComponentInstantiation_LoadInProcess. Moreover: @constant kAudioComponentFlag_CanLoadInProcess The system sets this flag automatically when registering components which can be loaded into the current process. This is always true for V2 audio units; it depends on the packaging in the case of a V3 audio unit. So I started to tweak AudioUnitV3Demo <https://developer.apple.com/library/content/samplecode/AudioUnitV3Example/Introduction/Intro.html> OS X host in order to run FilterDemo app extension within OSX AUv3Host process: I verified AUv3 FilterDemo app extension reports CanLoadInProcess flag from its description. I passed loadInProcess <https://developer.apple.com/reference/audiotoolbox/audiocomponentinstantiationoptions/1410490-loadinprocess> option accordingly when AU v3 host calls AVAudioUnit.instantiate to instantiate the AUv3 component. But I can see that AudioUnit Extension is still running in a dedicated process... Hence my question is: *What else should I do to be able to run FilterDemo AU extension within OS X AUv3 host ? * *Is the default packing of FilterDemo App extension compatible with LoadInProcess instantiation ?* Thank you for your help, Best regards, Joris GIGNOUX
_______________________________________________ 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]
