Min Max distance set from code not working correctly

FMOD_STUDIO_EVENT_PROPERTY_MAXIMUM_DISTANCE & FMOD_STUDIO_EVENT_PROPERTY_MINIMUM_DISTANCE

These properties do not work when set from code if the override option is checked on the Studio side. If it’s off, it works as expected. Maybe this isn’t unexpected behavior but it would be an important feature to modify this value regardless of studio values.
image

Hi,

What version of the FMOD integration are you using?

Could I get some reproduction steps or the code used to set the values?

Hi!
Version: 2.02.05
Edit:
Noticed that the Studio version is newer 2.02.21

image
Setting these properties before or after starting the sound did not solve this.

This sounds like the intended behaviour, as the event min/max distance is at the event level, while a spacializer distance override is at the dsp level.

If you want to set the value for an overridden min/max distance, you should automate the min/max distance values with a parameter and set the parameter value appropriately instead.

2 Likes

Was wondering if this was intended behavior. Thanks for the answer!

2 Likes