Superclasses :
none
Subclasses :
AUIOElement
Header : AUScopeElement
class AUElement
Each scope of an AudioUnit contains elements which contain the parameters that can be set in that scope.
For input and output scopes, elements represent busses and each buss contains some number of channels of audio.
For global scope there is a single element containing all of the parameters that affect the entire audio unit.
For group scope, the parameters affect that group.
Methods
Constructor
AUElement(AUBase *audioUnit);
Destructor
|
public virtual destructor
|
virtual ~AUElement();
Other
AUBase* GetAudioUnit() const;
Internal. Accessor. Return the AudioUnit that owns this element.
CFStringRef GetName () const;
void GetRampSliceStartEnd(
AudioUnitParameterID paramID,
Float32& outStartValue,
Float32& outEndValue,
Float32& outValuePerFrameDelta
);
bool HasName () const;
void SetName (CFStringRef inName);
void SetScheduledEvent(
AudioUnitParameterID paramID,
const AudioUnitParameterEvent& inEvent,
UInt32 inSliceOffsetInBuffer,
UInt32 inSliceDurationFrames
);
virtual void UseIndexedParameters(int inNumberOfParameters);
Parameters
UInt32 GetNumberOfParameters();
Internal. Return the number of parameters in this element.
Float32 GetParameter(AudioUnitParameterID paramID);
Internal. Return the the value of a parameter in this element. This gets called from AUBase::GetParameter.
void GetParameterList(AudioUnitParameterID *outList);
const UInt8* RestoreState(const UInt8 *state);
Internal. Restores the state of this element's parameters from a CFMutableDataRef. This gets called from AUBase::RestoreState.
void SaveState(CFMutableDataRef data);
Internal. Saves the state of this element's parameters to a CFMutableDataRef. This gets called from AUBase::SaveState.
void SetParameter(
AudioUnitParameterID paramID,
Float32 value
);
Internal. Set the the value of a parameter in this element. This gets called from AUBase::SetParameter.
Data
Other
|
private instance variable
|
AUBase* mAudioUnit;
The owning AUBase object.
|
private instance variable
|
CFStringRef mElementName;
|
private instance variable
|
std::vector<ParameterMapEvent> mIndexedParameters;
|
private instance variable
|
ParameterMap mParameters;
A data structure containing all of the parameter values for this element.
|
private instance variable
|
bool mUseIndexedParameters;