Hey, I just had this awesome composer make some audio for my game, and now I can't even get it initialized.
He made all the wav files and created the XACT project, and I am just trying to initialize the audio engine.
I'm pretty sure it's a problem with the XACT rather than the code, but here is my Game.cs anyway:
fields
| |
| AudioEngine audio; |
| WaveBank SFX; |
| WaveBank music; |
| public SoundBank GameplayBank; |
| public SoundBank MenuBank; |
initialization
| |
| audio = new AudioEngine("Content\\Audio\\Trippin_Alien.xgs"); |
| SFX = new WaveBank(audio, "Content\\Audio\\SFX.xwb"); |
| music = new WaveBank(audio, "Content\\Audio\\Music.xwb"); |
| GameplayBank = new SoundBank(audio, "Content\\Audio\\Gamelay.xsb"); |
| MenuBank = new SoundBank(audio, "Content\\Audio\\Menu.xsb"); |
When I run it, I get the ambiguous "InvalidOperationException Unhandled" error on the line where I initialize the music wavebank. The file paths are right, all the files are included in the content folder, it just won't run.
Any and all help appreciated.