开发者

Max 3D distance in fmod

开发者 https://www.devze.com 2023-03-27 15:24 出处:网络
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 开发者

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号