Fade Music In and Out

I’d like to fade my music in and out when the music starts and ends. I have 2 songs that don’t loop together very well, so I have them playing quietly in the background, and I think the best effect would be just having the music fade out, wait a few seconds, and then slowly fade in the next tune. My game is very ambient and smooth, so music is very important to the style.

I found this topic: http://hub.jmonkeyengine.org/forum/topic/making-a-fading-musicsystem/ however this is from 2009 and classes such as MusicTrackQueue don’t seem to exist anymore. So is this possible?

Just interpolate the volume of the sound over some period from 0 to 1 or 1 to 0 as needed. There is nothing built in to do this but it also isn’t hard to just do it.

1 Like

I figured I would do that, I was just wondering if there was anything built in. Thanks

1 Like