• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Getting an AUAudioUnit from an AudioUnit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting an AUAudioUnit from an AudioUnit


  • Subject: Getting an AUAudioUnit from an AudioUnit
  • From: Gene De Lisa via Coreaudio-api <email@hidden>
  • Date: Tue, 12 Apr 2022 16:26:48 -0400

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

  • Follow-Ups:
    • Re: Getting an AUAudioUnit from an AudioUnit
      • From: Ariel Elkin via Coreaudio-api <email@hidden>
  • Prev by Date: Getting an AUAudioUnit from an AudioUnit
  • Next by Date: Re: Getting an AUAudioUnit from an AudioUnit
  • Previous by thread: Getting an AUAudioUnit from an AudioUnit
  • Next by thread: Re: Getting an AUAudioUnit from an AudioUnit
  • Index(es):
    • Date
    • Thread