Firelight Technologies FMOD Studio API
Calculates geometry occlusion between a listener and a sound source.
FMOD_RESULT System::getGeometryOcclusion(
const FMOD_VECTOR *listener,
const FMOD_VECTOR *source,
float *direct,
float *reverb
);
FMOD_RESULT FMOD_System_GetGeometryOcclusion(
FMOD_SYSTEM *system,
const FMOD_VECTOR *listener,
const FMOD_VECTOR *source,
float *direct,
float *reverb
);
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.
If single sided polygons have been created, it is important to get the source and listener positions round the right way, as the occlusion from point A to point B may not be the same as the occlusion from point B to point A.
Version 1.03.06 Built on Apr 17, 2014