currently i'm figuring out how to do the basics for a platform game i'm working on and i was just wondering how i would go about making a sample (used for background music) that has been playing over frames fade out and then start playing another sample in it's place once the first has fully faded out.

Also are there many tutorials on adding music to your games that i could look at?