Jump to content
  • Advertisement
Sign in to follow this  
huaner

CreateStreamWaveBank error

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

hi:
i found a problem about the api of CreateStreamWaveBank. if the .xwb file is error, the reture value of CreateStreamWaveBank
is ok,and the value of xactsoundbank is not null. but then if i used this xactsoundbank, there is an error of "Unhandled exception"
At the same, if the .xwb file is error, i uesd api of CreateInMemoryWaveBank, the return value can tell me the error.
so, how to know the stream .xwb file is error before i use xactsoundbank . i can't fall across "Unhandled exception".
Thanks!

Share this post


Link to post
Share on other sites
Advertisement

hi:
i found a problem about the api of CreateStreamWaveBank. if the .xwb file is error, the reture value of CreateStreamWaveBank
is ok,and the value of xactsoundbank is not null. but then if i used this xactsoundbank, there is an error of "Unhandled exception"
At the same, if the .xwb file is error, i uesd api of CreateInMemoryWaveBank, the return value can tell me the error.
so, how to know the stream .xwb file is error before i use xactsoundbank . i can't fall across "Unhandled exception".
Thanks!

Do you mean CreateStreamingWaveBank?

According to the documentation for CreateStreamingWaveBank:
"Do not use a sound that is associated with a streaming wave bank unless you know that the wave bank is prepared.

To ascertain that the wave bank is prepared, do one of the following:

  • Create an XACTNOTIFICATIONTYPE_WAVEBANKPREPARED notification by using IXACT3Engine::RegisterNotification.

    –or–
  • Issue a query about the state of the wave bank by using IXACT3WaveBank::GetState. When the XACT_WAVEBANKSTATE_PREPARED bit is set, you can use the wave bank."
    Do you check that the wave bank has been prepared?

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!