adamcichy / SwiftySound

SwiftySound is a simple library that lets you play sounds with a single line of code.
MIT License
1.24k stars 98 forks source link

Fade option on stopping all playing files #16

Open boombox2000 opened 6 years ago

boombox2000 commented 6 years ago

This is more of a feature request:

Would it be possible to add a fade out option with a parameter for how long the fade out should be when calling the stopall function?

The use cases would be when using the loop function for multiple playing files you may want to fade out those sounds instead of stopping them at once.

adamcichy commented 6 years ago

Thanks for the suggestion. I'll look into it.

JanX2 commented 6 years ago

This might be a solution:

https://littlebitesofcocoa.com/265-fading-audio-with-avaudioplayer