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

AUEffectBase GetParameter(..)


  • Subject: AUEffectBase GetParameter(..)
  • From: Brian Davies <email@hidden>
  • Date: Sun, 10 Jun 2012 12:12:22 +1000

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

  • Follow-Ups:
    • Re: AUEffectBase GetParameter(..)
      • From: Kevin Dixon <email@hidden>
  • Prev by Date: Re: legal questions about audio content
  • Next by Date: Understanding HALPlugin
  • Previous by thread: Re: legal questions about audio content
  • Next by thread: Re: AUEffectBase GetParameter(..)
  • Index(es):
    • Date
    • Thread