Tell me more ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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();
share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.