XNA Creators Club Online
Page 1 of 1 (3 items)
Sort Posts: Previous Next

Help with audio pls.

Last post 04-26-2008 2:46 AM by Alexandre Mutel. 2 replies.
  • 04-22-2008 10:33 PM

    Help with audio pls.

    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?
  • 04-24-2008 8:30 PM In reply to

    Re: Help with audio pls.

    So I've stumped the forums?
  • 04-26-2008 2:46 AM In reply to

    Re: Help with audio pls.

    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).
Page 1 of 1 (3 items) Previous Next