Firelight Technologies FMOD Studio API

FMOD_CHANNELCONTROL_CALLBACK

Callback for channel events.

C/C++ Syntax

FMOD_RESULT F_CALLBACK FMOD_CHANNELCONTROL_CALLBACK(
  FMOD_CHANNEL *channel,
  FMOD_CHANNELCONTROL_CALLBACK_TYPE type,
  void *commanddata1,
  void *commanddata2
);

Parameters

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.

Return Values

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.

Remarks

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.

Note! Currently the user must call System::update for these callbacks to trigger!

See Also




Version 1.03.06 Built on Apr 17, 2014