FMOD_3D_ROLLOFF_CALLBACK

FMOD Studio API

Firelight Technologies FMOD Studio API

FMOD_3D_ROLLOFF_CALLBACK

Callback for system wide 3D channel volume calculation which overrides fmod's internal calculation code.

C/C++ Syntax

float F_CALLBACK FMOD_3D_ROLLOFF_CALLBACK(
  FMOD_CHANNEL *channel,
  float distance
);

Parameters

channel

Pointer to a channel handle.

distance

Distance in units (meters by default).

Return Values

Return the channel volume for the given distance.

Remarks

C++ Users. Cast FMOD_CHANNEL * to FMOD::Channel * inside the callback and use as normal.

See Also




Version 1.10.03 Built on Feb 1, 2018