Hello Gene, Thanks for the reply.
I'm familiar with the differences between the AudioUnit v2 and v3 APIs, but the documentation doesn't seem to address my issue, which is casting an AudioUnit instance ( https://developer.apple.com/documentation/audiotoolbox/audiounit) into an AUAudioUnit ( https://developer.apple.com/documentation/audiotoolbox/auaudiounit) To clarify: I need to instantiate my AUAudioUnit subclass using the AudioUnit v2 (C) API. How can I then call AUAudioUnit methods on that instance? Cheers Ariel > 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? On Tue, Apr 12, 2022 at 9:27 PM Gene De Lisa via Coreaudio-api < [email protected]> wrote: > 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, [email protected] > wrote: > > > > Send Coreaudio-api mailing list submissions to > > [email protected] > > > > 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 > > [email protected] > > > > You can reach the person managing the list at > > [email protected] > > > > 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 <[email protected]> > > Subject: Getting an AUAudioUnit from an AudioUnit > > Date: April 12, 2022 at 5:20:11 AM EDT > > To: [email protected] > > > > > > 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 > > [email protected] > > https://lists.apple.com/mailman/listinfo/coreaudio-api > > _______________________________________________ > 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/arielelkin%40gmail.com > > This email sent to [email protected] >
_______________________________________________ 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]
