I have created a XAP file using the version of XACT that ships with XNA 2.
In it are two wav files , FOOTBALLKICK.wav and cheer_8k.wav
I have two sounds attached to them called "kick" and "cheer".
In the XAP file they both appear like this.
Sound
{
Name = kick;
Volume = -1200;
Pitch = 0;
Priority = 0;
........
Sound
{
Name = cheer;
Volume = -1200;
Pitch = 0;
Priority = 0;
.....
I have created my sound and wav banks with no problems, but when I try to play a clip with
soundBank.PlayCue(
"kick");
I get an invalid operation exception, "are you sure the cue name is correct
The cue names do not seem to be stored in the soundbank anywhere, I can see two objects with keys that are ints, but no stringss so I can't look for what the soundbank is expecting
Stuck
Any ideas?