Question

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.

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top