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!
how to play bg music and fx sound at the same time
No replies to this topic