Jump to content
  • Advertisement
Sign in to follow this  
ThePPK

Output sound to multiple devices with XAudio2

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

DX SDK states that several XAudio2 instances can be created from a single thread, but on the other hand in IXAudio2::CreateMasteringVoice article there is a note: "Only one device can be used by XAudio2 at a time." So can I output sound to two sound cards? And if not why there is no any other mention about "only one device" in the whole XAudio2 reference? And how this can be suitable for MS to create a library with such awful limitation (deprecating DirectSound handles multiple sound cards perfectly)?

Share this post


Link to post
Share on other sites
Advertisement
I tried to run two XAudio2 engines mapped to two different devices but there is an error on the second call.

So no multiple device support at all?

Share this post


Link to post
Share on other sites
I need to output to 10+ speakers in my application. Currently used DirectSound solution requires 5 sound cards (and 2 speakers per each card). But this is unstable solution because I just can't use 2 or more sound cards of the same model (even 2 same Creative X-Fi sound cards get Windows to BSOD in 1 minute of hard simultaneous use). So the current solution is to use 5 sound cards of different models, but it's also not good as some soundcard drivers are not stable (especially true for USB sound cards) AND modern motherboards have max of 3 PCI slots.

The best solution I see is to use 5.1 or 7.1 speaker configuration and have up to 8 speakers per sound card. XAudio2 does this perfect but only for ONE sound card, so I can have only 8 speakers max. And this is not good enough.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!