SEHException throw using Microsoft XACT Audio Framework (XACT3)

Posted by Sweta Dwivedi on Game Development See other posts from Game Development or by Sweta Dwivedi
Published on 2012-12-16T12:40:36Z Indexed on 2012/12/16 23:23 UTC
Read the original article Hit count: 310

Filed under:
|
|
|

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();

© Game Development or respective owner

Related posts about XNA

Related posts about audio