'AudioUnitScheduleParametersProc' does not name a type
'AudioUnitScheduleParametersProc' does not name a type
- Subject: 'AudioUnitScheduleParametersProc' does not name a type
- From: Bjorn Roche <email@hidden>
- Date: Wed, 10 May 2006 13:06:57 -0400 (EDT)
Hey all,
I am trying to use AudioUnit's quick dispatch functionality. The
properties to get these functions are provided and include
kAudioUnitcheduleParametersSelect. Obviously, fast dispatching of
parameter scheduling is highly desirable since this must be done before
each render. However, Apple does not define a proc for this, as they do
with set, get and render. Why is this missing? can I simply define it
myself? how?
thanks,
bjorn
(a relevant portion of AUComponents.h is below)
-------------
Bjorn Roche
Check out my CD Mastering Software
for Mac OS X : http://www.xowave.com
enum
{
kAudioUnitRange = 0x0000, // range of selectors for AudioUnits
kAudioUnitInitializeSelect = 0x0001,
kAudioUnitUninitializeSelect = 0x0002,
kAudioUnitGetPropertyInfoSelect = 0x0003,
kAudioUnitGetPropertySelect = 0x0004,
kAudioUnitSetPropertySelect = 0x0005,
kAudioUnitAddPropertyListenerSelect = 0x000A,
kAudioUnitRemovePropertyListenerSelect = 0x000B,
kAudioUnitAddRenderNotifySelect = 0x000F,
kAudioUnitRemoveRenderNotifySelect = 0x0010,
kAudioUnitGetParameterSelect = 0x0006,
kAudioUnitSetParameterSelect = 0x0007,
kAudioUnitScheduleParametersSelect = 0x0011,
kAudioUnitRenderSelect = 0x000E,
kAudioUnitResetSelect = 0x0009
};
//-----------------------------------------------------------------------------
// Fast-dispatch function pointer types
//
// For functions where performance may be an issue, a client may use
// the kAudioUnitProperty_FastDispatch property to get a function
// pointer pointing directly to the AudioUnit's implementation, to
// avoid the cost of dispatching through the Component Manager. (Note
// that AudioUnits are not required to implement this, but should.)
//-----------------------------------------------------------------------------
typedef ComponentResult
(*AudioUnitGetParameterProc)( void * inComponentStorage,
AudioUnitParameterID inID,
AudioUnitScope inScope,
AudioUnitElement inElement,
Float32 * outValue);
typedef ComponentResult (*AudioUnitSetParameterProc)( void * inComponentStorage,
AudioUnitParameterID inID,
AudioUnitScope inScope,
AudioUnitElement inElement,
Float32 inValue,
UInt32 inBufferOffsetInFrames);
typedef ComponentResult (*AudioUnitRenderProc)( void * inComponentStorage,
AudioUnitRenderActionFlags * ioActionFlags,
const AudioTimeStamp * inTimeStamp,
UInt32 inOutputBusNumber,
UInt32 inNumberFrames,
AudioBufferList * ioData);
_______________________________________________
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