开发者

How to achieve smooth sound fading effects?

开发者 https://www.devze.com 2023-02-20 19:24 出处:网络
What is the best possible way to smoothly fade in/out a sound with SFML 1.6? It has SetVolume() and SetAttenuation(). These two directly set these values. But I need a开发者_运维问答 smooth transiti

What is the best possible way to smoothly fade in/out a sound with SFML 1.6?

It has SetVolume() and SetAttenuation(). These two directly set these values. But I need a开发者_运维问答 smooth transition from one sound to another.


I think the best way would be to set the volume lower and lower with each frame/time step.

0

精彩评论

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

关注公众号