XNA Creators Club Online
Page 1 of 1 (2 items)
Sort Posts: Previous Next

SoundBank causing problems again

Last post 05-04-2008 8:05 AM by Stainless. 1 replies.
  • 05-04-2008 7:52 AM

    SoundBank causing problems again

    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?

     

    Information is not knowledge, knowledge is not wisdom, wisdom is not truth, truth is not beauty, beauty is not love, love is not music, music is the best! Wisdom is the domain of the Wis (which is extinct).
  • 05-04-2008 8:05 AM In reply to

    Re: SoundBank causing problems again

    okay sorted it, for some reason xact had only created one cue although I added two sounds.

    can anyone tell me if XACT is going to be improved?

    I now we have the new sound api coming with xna 3 but is xact going to be improved as well?

    it really is very poor when you compare it with the quality of the rest of the tool chain in XNA.

     

     

    Information is not knowledge, knowledge is not wisdom, wisdom is not truth, truth is not beauty, beauty is not love, love is not music, music is the best! Wisdom is the domain of the Wis (which is extinct).
Page 1 of 1 (2 items) Previous Next
var gDomain='m.webtrends.com'; var gDcsId='dcschd84w10000w4lw9hcqmsz_8n3x'; var gTrackEvents=1; var gFpc='WT_FPC'; /*<\/scr"+"ipt>");} /*]]>*/
DCSIMG