• 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
Re: Controlling custom parameters of AUAudioUnit subclass when instantiated via AudioComponentInstanceNew
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Controlling custom parameters of AUAudioUnit subclass when instantiated via AudioComponentInstanceNew


  • Subject: Re: Controlling custom parameters of AUAudioUnit subclass when instantiated via AudioComponentInstanceNew
  • From: Pavol Markovic via Coreaudio-api <email@hidden>
  • Date: Thu, 9 Jul 2020 22:15:44 +1200

Hi Ariel,

You should be able to get and set parameter value through AudioUnitGetParameter
/ AudioUnitSetParameter functions
https://developer.apple.com/documentation/audiotoolbox/1440055-audiounitgetparameter
https://developer.apple.com/documentation/audiotoolbox/1438454-audiounitsetparameter


> On 2 Jul 2020, at 04:18, Ariel Elkin via Coreaudio-api
> <email@hidden> wrote:
>
> Hello folks,
>
> I have an AUAudioUnit subclass which I'm using to process the audio played
> back by an AVPlayer instance.
>
> The approach is to create a MTAudioProcessingTapRef, make the audio unit
> render within its MTAudioProcessingTapProcessCallback, and assign that tap as
> the tapProcessor property of the AVMutableAudioMix of a AVPlayerItem. This is
> pretty much Apple's reference implementation here:
> https://developer.apple.com/documentation/avfoundation/avaudiomixinputparameters/1388578-audiotapprocessor
>
> <https://developer.apple.com/documentation/avfoundation/avaudiomixinputparameters/1388578-audiotapprocessor>
>
> The tap works as intended, and the AVPlayer's audio flows through my audio
> unit's render callback. However, I initialise my audio unit with
> AudioComponentInstanceNew, so it's of type AudioUnit, so it can't seemingly
> expose the AUParameters properties it has as an AUAudioUnit.
>
> Does anyone have any ideas as to how I can control custom parameters of
> AUAudioUnit subclasses that are instantiated via AudioComponentInstanceNew?
>
> 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

 _______________________________________________
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

References: 
 >Controlling custom parameters of AUAudioUnit subclass when instantiated via AudioComponentInstanceNew (From: Ariel Elkin via Coreaudio-api <email@hidden>)

  • Prev by Date: Connecting two iMac - but losing audio
  • Next by Date: USB-MIDI: Mojave vs Catalina
  • Previous by thread: Controlling custom parameters of AUAudioUnit subclass when instantiated via AudioComponentInstanceNew
  • Next by thread: Connecting two iMac - but losing audio
  • Index(es):
    • Date
    • Thread