Audacity 3.2.0
|
Classes | |
struct | Buffer |
struct | Parameter |
struct | ParameterInfo |
struct | ParameterNameInfo |
struct | Property |
struct | RenderCallback |
struct | StreamBasicDescription |
struct | UserPreset |
Functions | |
OSStatus | GetFixedSizePropertyPtr (AudioUnit unit, AudioUnitPropertyID inID, void *pProperty, UInt32 size, AudioUnitScope inScope, AudioUnitElement inElement) |
Type-erased function to get an AudioUnit property of fixed size. More... | |
template<typename T > | |
OSStatus | GetFixedSizeProperty (AudioUnit unit, AudioUnitPropertyID inID, T &property, AudioUnitScope inScope=kAudioUnitScope_Global, AudioUnitElement inElement=0) |
OSStatus | GetVariableSizePropertyPtr (AudioUnit unit, AudioUnitPropertyID inID, size_t minSize, void *&pObject, size_t &size, AudioUnitScope inScope, AudioUnitElement inElement) |
Type-erased function to get an AudioUnit property of variable size. More... | |
template<typename T > | |
OSStatus | GetVariableSizeProperty (AudioUnit unit, AudioUnitPropertyID inID, PackedArray::Ptr< T > &pObject, AudioUnitScope inScope=kAudioUnitScope_Global, AudioUnitElement inElement=0) |
OSStatus | SetPropertyPtr (AudioUnit unit, AudioUnitPropertyID inID, const void *pProperty, UInt32 size, AudioUnitScope inScope, AudioUnitElement inElement) |
Type-erased function to set an AudioUnit property. More... | |
template<typename T > | |
OSStatus | SetProperty (AudioUnit unit, AudioUnitPropertyID inID, const T &property, AudioUnitScope inScope=kAudioUnitScope_Global, AudioUnitElement inElement=0) |
OSStatus AudioUnitUtils::GetFixedSizeProperty | ( | AudioUnit | unit, |
AudioUnitPropertyID | inID, | ||
T & | property, | ||
AudioUnitScope | inScope = kAudioUnitScope_Global , |
||
AudioUnitElement | inElement = 0 |
||
) |
Get an AudioUnit property of deduced type and fixed size, supplying most often used values as defaults for scope and element
Definition at line 40 of file AudioUnitUtils.h.
References GetFixedSizePropertyPtr().
Referenced by AudioUnitWrapper::GetFixedSizeProperty(), AudioUnitInstance::GetLatency(), and AudioUnitWrapper::ParameterInfo::ParameterInfo().
OSStatus AudioUnitUtils::GetFixedSizePropertyPtr | ( | AudioUnit | unit, |
AudioUnitPropertyID | inID, | ||
void * | pProperty, | ||
UInt32 | size, | ||
AudioUnitScope | inScope, | ||
AudioUnitElement | inElement | ||
) |
Type-erased function to get an AudioUnit property of fixed size.
Definition at line 14 of file AudioUnitUtils.cpp.
References size.
Referenced by GetFixedSizeProperty().
OSStatus AudioUnitUtils::GetVariableSizeProperty | ( | AudioUnit | unit, |
AudioUnitPropertyID | inID, | ||
PackedArray::Ptr< T > & | pObject, | ||
AudioUnitScope | inScope = kAudioUnitScope_Global , |
||
AudioUnitElement | inElement = 0 |
||
) |
Get an AudioUnit property of deduced type and variable size, supplying most often used values as defaults for scope and element, and seating the raw pointer result into a smart pointer
Definition at line 62 of file AudioUnitUtils.h.
References GetVariableSizePropertyPtr(), and size.
Referenced by AudioUnitWrapper::GetVariableSizeProperty().
OSStatus AudioUnitUtils::GetVariableSizePropertyPtr | ( | AudioUnit | unit, |
AudioUnitPropertyID | inID, | ||
size_t | minSize, | ||
void *& | pObject, | ||
size_t & | size, | ||
AudioUnitScope | inScope, | ||
AudioUnitElement | inElement | ||
) |
Type-erased function to get an AudioUnit property of variable size.
Warning: on success, performs a "naked" allocation in pObject! Else, nulls it.
Definition at line 25 of file AudioUnitUtils.cpp.
References size.
Referenced by GetVariableSizeProperty().
OSStatus AudioUnitUtils::SetProperty | ( | AudioUnit | unit, |
AudioUnitPropertyID | inID, | ||
const T & | property, | ||
AudioUnitScope | inScope = kAudioUnitScope_Global , |
||
AudioUnitElement | inElement = 0 |
||
) |
Set an AudioUnit property of deduced type, supplying most often used values as defaults for scope and element
Definition at line 89 of file AudioUnitUtils.h.
References SetPropertyPtr().
Referenced by AudioUnitWrapper::SetProperty().
OSStatus AudioUnitUtils::SetPropertyPtr | ( | AudioUnit | unit, |
AudioUnitPropertyID | inID, | ||
const void * | pProperty, | ||
UInt32 | size, | ||
AudioUnitScope | inScope, | ||
AudioUnitElement | inElement | ||
) |
Type-erased function to set an AudioUnit property.
Definition at line 63 of file AudioUnitUtils.cpp.
References size.
Referenced by SetProperty().