Xact files can not be found using sound manager
by Raymond Ku · in Torque X 2D · 03/15/2010 (6:47 pm) · 4 replies
I'm trying to get music to run in my game
I get "Could not find file 'bin/x86/Debug/Sound Bank.xsb'."
and "Could not find file 'bin/x86/Debug/Wave Bank.xsb'."
When i look in the debug folder those two files are actually in debugdatasound
how do i get the project to look in the correct folder
in game.cs i have
in XACT i changed all the sounds bank files to 'global'
and in torquesettings.xml
i have
i put music.xap in my project data/sound folder
I get "Could not find file 'bin/x86/Debug/Sound Bank.xsb'."
and "Could not find file 'bin/x86/Debug/Wave Bank.xsb'."
When i look in the debug folder those two files are actually in debugdatasound
how do i get the project to look in the correct folder
in game.cs i have
SoundManager.Instance.RegisterSoundGroup(
"music", @"data/sound/Wave Bank.xwb", @"data/sound/Sound Bank.xsb");
SoundManager.Instance.PlaySound("music", "01 Track 1");in XACT i changed all the sounds bank files to 'global'
and in torquesettings.xml
i have
<EnableAudio>true</EnableAudio> <AudioGlobalSettingsFile>data/sound/music.xgs</AudioGlobalSettingsFile>
i put music.xap in my project data/sound folder
About the author
http://cip-game.blogspot.com
#2
I'm not sure if that matters
So does this mean that i dont have to build the project with XACT and just save the project .xap file in the content folder?
Everytime i'm adding
in my settings.xml
my project crashes now.
Thanks so much for the reply, the help is much needed
03/15/2010 (9:43 pm)
is "data/sfx" your Content folder or is "sfx" a subfolder?I'm not sure if that matters
So does this mean that i dont have to build the project with XACT and just save the project .xap file in the content folder?
Everytime i'm adding
<AudioGlobalSettingsFile>data/sound/music.xgs</AudioGlobalSettingsFile>
in my settings.xml
my project crashes now.
Thanks so much for the reply, the help is much needed
#3
03/15/2010 (9:49 pm)
Got it working, turns out i had the streaming property turned on in the Xact wave properties. Thanks again for your help
Torque 3D Owner Henry Shilling
Smokin Skull
The GameSounds.xap file is in my data\sfx folder.
I have a sound component but also anytime I need a sound I can play it anywhere by just doing:
Game.Instance.GameSoundBank.PlayCue("menuClick");I use this in my GUI for the menu. The torquesettings.xml looks right to me.