I'm developing a simple rhythm game for Windows Phone 7 using XNA. Currently I'm writing the tombstoning logic but I've stumbled with the audio state.
I have a song playing in the background, using MediaPlayer. When my game is tombstoned, song playback should stop and its state saved, so that when my game is loaded again the song starts playing where it was left. I'm using the MediaPlayer class to play the song, but it seems there's no way to seek the song to an arbitrary position.
Is there any way to save and restore the state of MediaPlayer so that the song playback can be properly resumed? Or is there a better way to play a song in order to support tombstoning?
Thanks in advance