I am using the Finch
openAL wrapper in iOS and would like to fade out my FISound
's.
Suppose I have a 30 second sound, I would like to be able to fade out the sound over 5 seconds after 15 seconds for example.
I'd like to avoid dropping down to openAL for it if possible.
Set up an
NSTimer
that repeatedly decreases the sound gain until zero. Or you can do it like this:This is a quick and dirty solution, but it should work fine for a lot of cases.