Page 1 of 1

Need help testing XAudio2

Posted: Mon Sep 01, 2008 8:05 am
by spacy51

Hi there.

 

I have noticed a bug in my XAudio2 sound output. When I set my speaker setup to 4.0, 5.1 or 7.1, everything works fine, but when I set it to 2.0 or Headphones, XAudio2 won't play back any audio data, resulting in hangs when audio sync is enabled. I already did all I could for debugging, but I had no success in finding the mistake yet. The strange thing is, the example project from the SDK works fine with stereo, but it only uses a mono sample.

 

I would be glad if anyone could test the latest Win32/MFC build with XAudio2 and tell me if it is working for him. Please disable stereo to surround upmixing.

Oh, and please tell me what sound card you are using. I'm using an ASUS Xonar DX.


Need help testing XAudio2

Posted: Tue Sep 02, 2008 5:22 pm
by Boksha

So that's speaker setup in the configuration panel set to "Desktop stereo speakers" or "Stereo headphones" and all VBA-M settings on default, right?

Seems to work fine here (build 634). I've got a Creative SB X-Fi XtremeGamer.


Need help testing XAudio2

Posted: Wed Sep 03, 2008 3:09 pm
by SCHUMI4EVER

What's stereo to surround upmixing? I don't recall seeing such an option in my settings...would that be EAX settings?


Need help testing XAudio2

Posted: Wed Sep 03, 2008 3:57 pm
by spacy51

Thanks Boksha, I also tested it with my OnBoard sound as well (Realtek ALC889A) and it works fine with 5.1 AND Stereo setup.

 

I already reviewed ALL of the XAudio2 code TWICE, checking every function call and every parameter, and I could not find a single piece of code which could logically block the voice in stereo mode from being played, so I assume this is a driver issue with the ASUS Xonar DX drivers, a weird one no less. Still, It won't go into my head, why the streaming example from the SDK DOES work on stereo on my Xonar DX [img]<fileStore.core_Emoticons>/emoticons/huh.png[/img]/emoticons/huh@2x.png 2x" width="20" height="20" /> I mean, I already compared it to my code and it is almost identical, this makes me sick, I tell you...

 

 

 

When stereo to surround upmixing is enabled in the XAudio2 config dialog in VBA-M, it will duplicate the stereo output to the front, the rear, and, if you have 7.0 or 7.1, to the side. The center gets a mono-mix from front-left + front-right. The subwoofer gets nothing, because a lowpass-filter was too complicated for me and because every good sound card driver has an option for bass managment anyway.