Jump to content
  • Advertisement
Sign in to follow this  
mikejr76

WaveBank Question (Noob)

This topic is 2476 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am new to XNA. I am going through Aaron Reed's book. I am having a problem with using Xact. The audioEngine is fine. The GameAudio.Xap file is in my Audio folder. I get a file not found exception for the WaveBank.xwb.

protected override void LoadContent()
{
// Create a new SpriteBatch, which can be used to draw texture s.
spriteBatch = new SpriteBatch(GraphicsDevice);
audioEngine = new AudioEngine(@"Content\Audio\GameAudio.xgs");
waveBank = new WaveBank(audioEngine, @"Content\Audio\WaveBank.xwb");
soundBank = new SoundBank(audioEngine, @"Content\Audio\SoundBank.xsb");
//soundEffect.Play();


// TODO: use this.Content to load your game content here
}


I guess I am a little confused. According to this book, if the xap file is there you code should have access to the WaveBank and SoundBank file.

Thanks in advance!

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!