Ariel, AudioUnitInitialize and AudioUnit are the v2 API.
AuAudioUnit is the v3 API which is instantiated via AVAudioUnit.instantiate This may help. https://developer.apple.com/documentation/audiotoolbox/audio_unit_v3_plug-ins/migrating_your_audio_unit_host_to_the_auv3_api gene - > On Apr 12, 2022, at 3:00 PM, coreaudio-api-requ...@lists.apple.com wrote: > > Send Coreaudio-api mailing list submissions to > coreaudio-api@lists.apple.com > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.apple.com/mailman/listinfo/coreaudio-api > or, via email, send a message with subject or body 'help' to > coreaudio-api-requ...@lists.apple.com > > You can reach the person managing the list at > coreaudio-api-ow...@lists.apple.com > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Coreaudio-api digest..." > Today's Topics: > > 1. Getting an AUAudioUnit from an AudioUnit (Ariel Elkin) > > From: Ariel Elkin <arielel...@gmail.com> > Subject: Getting an AUAudioUnit from an AudioUnit > Date: April 12, 2022 at 5:20:11 AM EDT > To: coreaudio-api@lists.apple.com > > > Hello folks > > I wrote an AUAudioUnit subclass, and I'm instantiating using the C API thus: > > AudioUnitInitialize(myAudioUnit)); > > where myAudioUnit is of type AudioUnit. Though it's backed up by an instance > of my custom AUAudioUnit subclass, the C code only sees it as an AudioUnit. > > Elsewhere in my app, I need to call custom methods I've defined in the > AUAudioUnit subclass. But I'm stuck trying to find a way to cast an AudioUnit > to an AUAudioUnit. > > How can I otherwise convert an AudioUnit instance to an AUAudioUnit instance? > > Thanks > > Ariel > > > _______________________________________________ > Coreaudio-api mailing list > Coreaudio-api@lists.apple.com > https://lists.apple.com/mailman/listinfo/coreaudio-api _______________________________________________ Do not post admin requests to the list. They will be ignored. Coreaudio-api mailing list (Coreaudio-api@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com This email sent to arch...@mail-archive.com