I am using FMOD_UE4_Tutorials_Map in Unreal Engine 4 with FMOD 1.07.07
Similar to the fmod_distance_filter sample plugin provided in the API, I am trying to write my own plugin that gets source/listener position when a 3D event such as grenade explosion takes place.
Is there any way to get this data ?
Also, when is the FMOD_DistanceFilter_dspsetparamdata callback triggered?
Using the distance filter is a good example to start from. The function FMOD_DistanceFilter_dspsetparamdata is part of the FMOD_DSP_DESCRIPTION, so it is called by FMOD when a data parameter is set into the DSP.
If you place the plugin on the master track of an event, and if the DSP has declared a FMOD_DSP_PARAMETER_DATA_TYPE_3DATTRIBUTES parameter, then FMOD Studio will update the 3d position into the DSP when the emitter or listener moves.