Hey all,
I’ve been trying to slowly port my WP7 game to Android and I’ve seemed to hit a wall that i can’t figure out. My game uses SoundEffectInstance in tandem with SoundEffect to play my music. My music is derived from the MP3 Audio format.
After reading around the forums and the net, I saw that i was supposed to compile my .mp3 files into .xnb and then load them in my MonoGame project from the .xnb files.
I’m finding that the sounds are loading perfectly but they dispose immediately once my code gets to the following
instance = trackToPlay.CreateInstance();
instance.IsLooped = true;
instance.Play();
// This is where the instance gets disposed...no song plays
My assets are set to be Copy if newer and Build Action = Android Asset. They are also the .xnb from my windows phone 7 game. What am I missing? Any help at all would be greatly appreciated. I’m testing on a Huwei T-mobile Prism II that runs 2.3 btw.
Thanks.