Jump to content
  • Advertisement
Sign in to follow this  

FriendlyName of wave in IXACT3WaveBank and Microsoft Cross-Platform Audio Creation Tool

This topic is 2297 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

There is a big problem with Microsoft Cross-Platform Audio Creation Tool. Please see this image:

I have 4 *.wav files in the wave bank and the names of the files are 'bankrut', 'gong' etc.
However when I set those strings to the GetWaveIndex('bankrut') etc. I get XACTINDEX_INVALID as XACTINDEX instead of number 0,1,2,3.
So I check whatt friendlyNames of XACT_WAVE_PROPERTIES are in this way:

XACTINDEX pNumWaves = 0;
wBank->waveBank->GetNumWaves(&pNumWaves); //it returns me proper value - 4
XACT_WAVE_PROPERTIES prop1, prop2, prop3, prop4;
wBank->waveBank->GetWaveProperties(0, &prop1);
wBank->waveBank->GetWaveProperties(1, &prop2);
wBank->waveBank->GetWaveProperties(2, &prop3);
wBank->waveBank->GetWaveProperties(3, &prop4);

XACTINDEX index1 = wBank->waveBank->GetWaveIndex("bankrut"); //I get XACTINDEX_INVALID
XACTINDEX index2 = wBank->waveBank->GetWaveIndex("gong"); //the same
XACTINDEX index3 = wBank->waveBank->GetWaveIndex("final_lost"); //the same
XACTINDEX index4 = wBank->waveBank->GetWaveIndex("countdown"); //the same

and they all are very strange because they are 'EEEEEEEEEEEEEEEE', they don't correspond to the tool names. As far as the rest data of XACT_WAVE_PROPERTIES are concerned, they correspond to the tool's properties (channels, bit, sample rate etc.). The problem is only in friendlyName data. So does anybody knows if it is a bug of Microsoft Cross-Platform Audio Creation Tool creation of .xwb files that it creates friendlyNames in not proper way?

Share this post

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

  • Advertisement

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!