SEHException throw using Microsoft XACT Audio Framework (XACT3)
- by Sweta Dwivedi
I have been developing a game using Kinect + XNA and using Microsoft Audio Creation tool (XACT3) for managing my sound files and music, however in the code an SEHException is thrown whenever it tries to get the wave file from the wave Bank . . Sometimes the code works magically and all of a sudden it will start throwing this exception randomly ..I need a help on solving this exception
/*Declaring Audio Engine for music*/
AudioEngine engine;
SoundBank soundBank;
WaveBank waveBank;
Cue cue;
/*Declaring Audio engine for sound effects*/
AudioEngine engine1;
SoundBank soundbank;
WaveBank wavebank;
Cue effect;
engine = new AudioEngine(@"Content\therapy.xgs");
soundBank = new SoundBank(engine, @"Content\Sound Bank.xsb");
**waveBank = new WaveBank(engine, @"Content\Wave Bank.xwb");**
cue = null;
engine1 = new AudioEngine(@"Content\Music_Manager\Sound_effects.xgs");
soundbank = new SoundBank(engine1, @"Content\Music_Manager\Sound1.xsb");
**wavebank = new WaveBank(engine1, @"Content\Music_Manager\Wave1.xwb");**
effect = null;
cue = soundBank.GetCue("hypnotizing");
cue.Play();