In my Initialize method before entering the main loop I am starting to play background music in a separate thread. I did this because I was unable to start the music and continue on with execution of the program. The current song is just a converted mp3 -> wav (about 4 minutes long). How can I tell the song to stop playing and the thread to termintate when the user clicks the Exit button or if the user clicks start and I want to change the background music.
FYI. I am using XAudio2 as my music API.
FYI. I am using XAudio2 as my music API.