LazySumo:I'm trying to get a C# program to sound simple musical notes based on in-game events. I need those notes to be generated at run time and controllable by game variables. Everything I've readup seems to indicate that all sound/music these days is playing .WAV or .MP3 files. Any help?
It's not possible right now with XNA Audio. XNA Audio is very limited and is only able to play plain WAV (without being able to change the frequency). This is an issue and we really hope that XNA audio will have some kind of dynamic audio support in the next release (3.0 ?), add your vote/comments to the Microsoft Connect site... and check other threads subject in this forum (like "dynamic audio" or "support for mp3")
As a workaround, you have the possibility of embedding multiple wavs of the note you want to play (awful of course, it's a waste of disk space and memory)... or try to use a managed wrapper like
FMOD (but it wont run on XBOX360).