Firelight Technologies FMOD Studio API
These callback types are used with FMOD_STUDIO_EVENT_CALLBACK.
typedef enum {
FMOD_STUDIO_EVENT_CALLBACK_STARTED,
FMOD_STUDIO_EVENT_CALLBACK_STOPPED,
FMOD_STUDIO_EVENT_CALLBACK_IDLE,
FMOD_STUDIO_EVENT_CALLBACK_CREATE_PROGRAMMER_SOUND,
FMOD_STUDIO_EVENT_CALLBACK_DESTROY_PROGRAMMER_SOUND,
FMOD_STUDIO_EVENT_CALLBACK_RESTARTED
} FMOD_STUDIO_EVENT_CALLBACK_TYPE;
FMOD_STUDIO_EVENT_CALLBACK_STARTED
Called when an instance starts. Parameters = FMOD_STUDIO_EVENTINSTANCE, which can be cast to Studio::EventInstance* type.
FMOD_STUDIO_EVENT_CALLBACK_STOPPED
Called when an instance stops. Parameters = FMOD_STUDIO_EVENTINSTANCE, which can be cast to Studio::EventInstance* type.
FMOD_STUDIO_EVENT_CALLBACK_IDLE
Called when an instance enters the idle state. Parameters = FMOD_STUDIO_EVENTINSTANCE, which can be cast to Studio::EventInstance* type.
FMOD_STUDIO_EVENT_CALLBACK_CREATE_PROGRAMMER_SOUND
Called when a programmer sound needs to be created in order to play a programmer instrument. Parameters = FMOD_STUDIO_PROGRAMMER_SOUND_PROPERTIES.
FMOD_STUDIO_EVENT_CALLBACK_DESTROY_PROGRAMMER_SOUND
Called when a programmer sound needs to be destroyed. Parameters = FMOD_STUDIO_PROGRAMMER_SOUND_PROPERTIES.
FMOD_STUDIO_EVENT_CALLBACK_RESTARTED
Called when an instance is restarted. Parameters = FMOD_STUDIO_EVENTINSTANCE, which can be cast to Studio::EventInstance* type.
The data passed to the event callback function in the parameters argument varies based on the callback type.
FMOD_STUDIO_EVENT_CALLBACK_STARTED is called when:
FMOD_STUDIO_EVENT_CALLBACK_RESTARTED is called when:
FMOD_STUDIO_EVENT_CALLBACK_STOPPED is called when:
FMOD_STUDIO_EVENT_CALLBACK_IDLE is called when:
Version 1.03.06 Built on Apr 17, 2014