Firelight Technologies FMOD Studio API
Tell callback for the codec for when FMOD tries to get the current position within the with Channel::getPosition.
FMOD_RESULT F_CALLBACK FMOD_CODEC_GETPOSITION_CALLBACK(
FMOD_CODEC_STATE *codec_state,
unsigned int *position,
FMOD_TIMEUNIT postype
);
codec_state
Pointer to the codec state. The user can use this variable to access runtime plugin specific variables and plugin writer user data.
position
Address of a variable to receive the current position in the codec based on the timeunit specified in the postype parameter.
postype
Timeunit type of the position parameter that is requested. This will be one of the timeunits supplied by the codec author in the FMOD_CODEC_DESCRIPTION structure.
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.
Remember to return FMOD_OK at the bottom of the function, or an appropriate error code from FMOD_RESULT.
Version 1.03.06 Built on Apr 17, 2014