Firelight Technologies FMOD Studio API
Callback for channel events.
FMOD_RESULT F_CALLBACK FMOD_CHANNELCONTROL_CALLBACK(
FMOD_CHANNEL *channel,
FMOD_CHANNELCONTROL_CALLBACK_TYPE type,
void *commanddata1,
void *commanddata2
);
channel
Pointer to a channel handle.
type
The type of callback. Refer to FMOD_CHANNELCONTROL_CALLBACK_TYPE.
commanddata1
The first callback type specific data generated by the callback. See remarks for meaning.
commanddata2
The second callback type specific data generated by the callback. See remarks for meaning.
If the function succeeds then the return value is FMOD_OK.
If the function fails then the return value will be one of the values defined in the FMOD_RESULT enumeration.
C++ Users. Cast FMOD_CHANNEL * to FMOD::Channel * inside the callback and use as normal.
'commanddata1' and 'commanddata2' meanings.
These 2 values are set by the callback depending on what is happening in the callback and the type of callback.
int) 0 when voice is swapped from emulated to real. 1 when voice is swapped from real to emulated.int) The index of the sync point. Use Sound::getSyncPointInfo to retrieve the sync point's attributes.float *) pointer to a floating point direct value that can be read (dereferenced) and modified after the geometry engine has calculated it for this channel.float *) pointer to a floating point reverb value that can be read (dereferenced) and modified after the geometry engine has calculated it for this channel.Note! Currently the user must call System::update for these callbacks to trigger!
Version 1.03.06 Built on Apr 17, 2014