Game Development Community

Error: wav file not found?

by GRAV · in Torque X 2D · 03/21/2008 (10:18 am) · 1 replies

I'm using the XACT Audio tool to create a sound project for my game.

clink2.wav is in my data/sounds/general/ folder

using XACT, I insert that wav file into my wave bank, and then sound/cue banks. I played the sound in XACT using the auditioning tool to make sure it was working.

I opened up my project in VisualStudioC# and added the the SoundProject.xap file to the project

now when I rebuild I get the error ".... clink2.wav" not found. I checked what path it was referencing. the .wav file IS THERE. why is VS telling me that it can't find it?

#1
03/22/2008 (10:23 am)
As much as I love XNA, I could really do without XACT ;)

Okay... I think you are only half way there. The .xap is just the XACT project. From within XACT, you also need to Build (F7) the project to create the .xgs, .xwb, and .xsb files. You also need to set the following in your TorqueSettings.xml file:

<EnableAudio>true</EnableAudio>
<AudioGlobalSettingsFile>data\sounds\XactProject.xgs</AudioGlobalSettingsFile>

Also, check the properties for the audio files within the project. The build action should be set to compile. Let me know if this makes any difference.

John K.