Fade on setPaused?


(Alec Brady) #1

We’re using setPaused to pause FMOD audio when the app goes to the background.

Currently this leads to the audio stopping dead with no fade out.

Is there a way to add an ADSR to this? Is there a way to let the OS take care of this? Perhaps a better function to use?

Thanks!
Alec


(Cameron Baron) #2

Using a Snapshot for specific buses would be your best bet.
You can then automate the Intensity and add modulation to smooth it out.

If you are taking control over pausing the events, instead of the RuntimeManager, make sure to suspend/resume the mixer as well.


(Alec Brady) #3

Great, thanks!