setting the property of peak limiter
setting the property of peak limiter
- Subject: setting the property of peak limiter
- From: MF <email@hidden>
- Date: Mon, 19 Jan 2009 17:31:06 +0100
Hello list...
I have walked through the archive about peak limiter and the setting
of effect unit, but I didn't really find the discussion about the
problem I have...
I tried to set up a peak limiter unit in my graph, but I failed to set
the property value of peaklimiter after installing it in the graph. Do
I miss any procedure in my setting?
the chaining is as follows:
mixer ---> peakLimiter ----> output unit
// peak node
AUNode peakNode;
AudioUnit peakUnit;
cd.componentType = kAudioUnitType_Effect;
cd.componentSubType = kAudioUnitSubType_PeakLimiter;
XRequireNoError (AUGraphAddNode(graph, &cd, &peakNode), "AUGraphNewNode");
XRequireNoError( AUGraphNodeInfo(graph, peakNode, 0, &peakUnit),
"AUGraphNodeInfo- output node");
Float32 db = 2;
XRequireNoError ( AudioUnitSetProperty (peakUnit, kLimiterParam_PreGain,
kAudioUnitScope_Global, 0,
&db,
sizeof (db)), "set peak limit");
I always get an error message at the last step (set property). Any one
who has ever successfully set up this unit? any suggestion or related
codes would be greatly appreciated! Thanks!
_______________________________________________
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