Jump to content
  • Advertisement
Sign in to follow this  

how to play bg music and fx sound at the same time

This topic is 2179 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 , everyone!
I have problem with xact audio. I want to play bg music and play sound effect at the same time.
Now i create a stream wave bank for the bg music , and create a in-memery wave bank for the sound effect, and create two soundbanks for each.
The problem is these two soundbanks point to the same block! I just do it like this:

...
...
audioEngine->CreateSoundBank( sbData1, fileSize, 0, 0, &pSoundBank1 ) ;

...
...
audioEngine->CreateSoundBank( sbData2 ,fileSize, 0, 0, &pSoundBank2) ;


i wonder if the audioEngine can hold multiple soundbanks, if can , how to play them at the same time?

Any words helps, thanks in advance!

Share this post


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

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!