I've tried different bitrates, I've tried using example projects on the web as well, and I always get nothing, I was thinking it might be some default value in the MediaPlayer or something, when it works for you guys it just works automatically?
It's not something like it "only works on Zune" either I guess?
I'm using a pretty old laptop(about 4yrs old), so there might be a hardware problem as well, I just don't know...
I don't have any problems playing mp3s normally though.
XNA 3.0, MSVS 2008
what I do is something like this:
Song coldComfort;
in content load:
1: coldComfort = content.Load<Song>("Audio/ColdComfort");
2: MediaPlayer.Play(coldComfort);
then I run the program, it compiles wonderfully, and... nothing is to be heard, at all :<
what I'm doing right now, is using SoundEffects for music as well, which seems like a waste if you're actually able to use mp3s :<
class SoundHandler
{
SoundEffect gameTheme1;
public SoundHandler(ContentManager content)
{
gameTheme1 = content.Load<SoundEffect>("Music/ColdComfort");
}
/*
*BGM IDs:
*0 main screen
*1 game BGM1
*2 game BGM2
*3 game BGM3
*/
public void PlayBackgroundMusic(int id)
{
switch(id)
{
case 0:
break;
case 1:
gameTheme1.Play(0.5f, 0, 0, true);
break;
default:
break;
}
}
}
only that one loaded right now though, so it looks a bit wierd, but you get the point. :)
And this works flawlessly.