Firelight Technologies FMOD Studio API
Callback for system wide 3d channel volume calculation which overrides fmod's internal calculation code.
float F_CALLBACK FMOD_3D_ROLLOFF_CALLBACK(
FMOD_CHANNEL *channel,
float distance
);
channel
Pointer to a channel handle.
distance
Distance in units (meters by default).
Return the channel volume for the given distance.
C++ Users. Cast FMOD_CHANNEL * to FMOD::Channel * inside the callback and use as normal.
NOTE: When using the event system, call Channel::getUserData to get the event instance handle of the event that spawned the channel in question.
Version 1.03.06 Built on Apr 17, 2014