Ok, so I have just started deploying my project to the XBox 360 and while I was expecting a few problems I was not expecting to have this big a one with the Audio. Here is my problem:
I have the Audio coded so that the background continues to loop when it grabs it from the list of songs and that works fine. However, my problem lies when I try to play a voice. Now, since both must use the MediaPlayer and you can only have 1 mp3 file playing at once I know that I must stop the previous song to play the voice. However, when I use:
if (MediaPlayer.State == MediaPlayer.Stopped)
{
//resume song here
}
It causes the game to chug and never seems to understand if its playing or not. Now, if I use this on the PC it works fine. Is there a problem using the State of the MediaPlayer to check if its playing and if there is then is there a way that I can check if the sound clip is stopped without knowing the length of the sound file?