Closed ecp4224 closed 10 years ago
Can slowly decrease/increase volume with AL_GAIN to get this effect. Could we do something like
Sound.crossfade("fromSound", "toSound");
to avoid returning an object just so we can call a .to("sound");
Ya sure, that's probably the easiest and most practical way to go about it.
This issue has been moved to the Internship milestone.
There should be an option to fade in and out sounds/music
The API should be something like this:
An optional API is the ability to do the following:
What the above will do is fade out music1 and fade in music2 at the same time to create a cross fade effect. This can be done by having fadeFrom start fading out music1 and return an object that has a to method in it, where the to method will fade in the sound provided. The object returned SHOULD NOT be a Sound object, because then the following would be possible
Which doesn't really make any sense...