Max 3D distance in fmod
I wonder what the maximum number of max 3d distance is? I have set it to 5250 in Fmod Designer but when I build my files it doesn't take effect. It works with 40 though. Can I change it in the 开发者_如何学Pythoncode afterworks? I am writing my code for iPhone.
Thanks!
There is no upper limit to 3D min or max distance since the values are in your own units (except of course for the limitations of a float).
Yes you can change these values at runtime, and keep in mind that min distance is when the sound starts attenuating and max distance is where it stops attenuating.
You can set the min and max at runtime with FMOD Ex via Channel or Sound ::set3DMinMaxDistance and you can set it via the Event System with Event::setPropertyByIndex and use FMOD_EVENTPROPERTY_3D_MINDISTANCE or FMOD_EVENTPROPERTY_3D_MAXDISTANCE.
精彩评论