Sound not playing on Windows XP - SoundEffect or Song: Monogame

Posted by ashes999 on Game Development See other posts from Game Development or by ashes999
Published on 2012-12-01T12:15:55Z Indexed on 2012/12/01 17:18 UTC
Read the original article Hit count: 333

Filed under:
|
|

I'm trying to integrate sound into my Monogame game. I don't have the content pipeline hack -- just straight Monogame (Beta 3) at this point.

(I tried adding the content pipeline, but ran into some issues.)

I added a .wav file to my /Content directory, and I can create and instantiate both SoundEffect and Song classes. However, both show durations of 00:00:00 (on a ten-second long file), and neither plays.

I can call LoadContent without any issue. But when I call Play, nothing plays.

I've tried a couple of different sounds, and different formats (MP3 and WAV) to rule that out. Only WAV seems to even load without crashing out, but it doesn't play.

There seems to be a GitHub issue that fixes this problem in 2.5.1. Downgrading to 2.5.1 doesn't fix this problem; it seems like it's fixed in 3.0 (_data is set in the SoundEffect instance).

This issue only occurs on Windows XP. I tested it on a Windows 7 laptop, and the sound plays fine.

© Game Development or respective owner

Related posts about XNA

Related posts about Windows