AUEffectBase GetParameter(..)
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.
|
_______________________________________________
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