Getting an AUAudioUnit from an AudioUnit
Getting an AUAudioUnit from an AudioUnit
- Subject: Getting an AUAudioUnit from an AudioUnit
- From: Ariel Elkin via Coreaudio-api <email@hidden>
- Date: Tue, 12 Apr 2022 10:20:11 +0100
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
_______________________________________________
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