Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

What is the best (recommended) way to integrate audio (both sound effect and music) in a game project (using C#/XNA) targeting multiple desktop platforms (W7, W8 Metro, Linux, OSX, ...) via MonoGame. XACT was the usual way in XNA but it is deprecated in W8 and also cannot be used with MonoGame, I am looking for an alternaive. Is there one?

share|improve this question

1 Answer 1

The "usual" way is to use the SoundEffect class. This will work on multiple platforms out of the box; it's done "the XNA way," so if you've used XNA, you should be familiar with how this works.

The only issue I found so far (tested on XP, Win7, and Android emulator) is that sound doesn't work on XP. I posted my long, painful saga (and solution) in this question and answer. (TLDR: OpenAL doesn't work on XP, so use NAudio for Windows instead.)

share|improve this answer
1  
Couldn't you use the Microsoft XNA implementation on XP? –  Andrew Russell Feb 6 '13 at 15:19
1  
@AndrewRussell why would I want my game referencing both MonoGame and Microsoft XNA? I'd rather just select a subset of it -- or even a subset of the NAudio library. –  ashes999 Feb 6 '13 at 20:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.