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