Re: Getting an AUAudioUnit from an AudioUnit
Re: Getting an AUAudioUnit from an AudioUnit
- Subject: Re: Getting an AUAudioUnit from an AudioUnit
- From: Ariel Elkin via Coreaudio-api <email@hidden>
- Date: Wed, 13 Apr 2022 10:44:43 +0100
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@hidden> 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@hidden
> wrote:
> >
> > Send Coreaudio-api mailing list submissions to
> > email@hidden
> >
> > 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@hidden
> >
> > You can reach the person managing the list at
> > email@hidden
> >
> > 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@hidden>
> > Subject: Getting an AUAudioUnit from an AudioUnit
> > Date: April 12, 2022 at 5:20:11 AM EDT
> > To: email@hidden
> >
> >
> > 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@hidden
> > 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@hidden)
> Help/Unsubscribe/Update your Subscription:
>
>
> This email sent to email@hidden
>
_______________________________________________
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