• 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: AUEffectBase GetParameter(..)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AUEffectBase GetParameter(..)


  • Subject: Re: AUEffectBase GetParameter(..)
  • From: Kevin Dixon <email@hidden>
  • Date: Tue, 12 Jun 2012 11:07:05 -0700

In AudioUnit.framework, AUComponent.h we see

typedef Float32 AudioUnitParameterValue;

:)

On Sat, Jun 9, 2012 at 7:12 PM, Brian Davies <email@hidden> wrote:
> The Apple sample Audio Unit has the lines of code
>
> int tremoloWaveform;
> tremoloFrequency = GetParameter(kParameter_Frequency);
> tremoloDepth = GetParameter(kParameter_Depth);
> tremoloWaveform = (int) GetParameter(kParameter_Waveform);
>
> and they work.  BUT, AUEffectBase.h defines GetParameter(..) with return
> value  AudioUnitParameterValue which is a struct - one member is a
> Float32*.  Why does the compiler accept the above code?   How can it
> cast AudioUnitParameterValue to Float32?
>
> Someone in the know, please reply.
>
> Brian Davies
>
> email@hidden
> www.kagi.com/clickrepair
>
>
>  _______________________________________________
> 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: 
 >AUEffectBase GetParameter(..) (From: Brian Davies <email@hidden>)

  • Prev by Date: Re: Detecting when an audio unit is bypassed
  • Next by Date: Get AUGraph to play silence
  • Previous by thread: AUEffectBase GetParameter(..)
  • Next by thread: Understanding HALPlugin
  • Index(es):
    • Date
    • Thread