Game Development Community

XAudio and DirectSound Issue...

by Sean Burgoon · in Torque Game Engine · 01/03/2009 (1:23 am) · 4 replies

Hey all,

I just purchased TGEA, and am having a problem with audio. OpenAL works fine, but DirectSound and XAudio won't play any audio in StrongHold, and the other examples have the volume slider disabled (I'm assuming that means they aren't detecting a DirectSound/XAudio device). I tested my soundcard (a creative Emu 0404 PCI with latest drivers) with the DirectX SDK xaudio demos and they work perfectly fine... any idea why I might be having this problem? Thanks!

-Sean

#1
01/03/2009 (2:36 pm)
Well... it's working now. I tried rebooting, latest drivers, everything and nothing worked. Then I went to sleep and woke up and it was working. The only other thing I had changed was enabling the onboard HD Audio device. Maybe there's something weird with the EMU driver that failed a check, but with the onboard audio device enabled (but not being used) it somehow passes said check. I was going to debug it in code later, but since it's working I won't bother until I have a problem. If anyone else has this problem with the emu (pro) cards, let me know, and I'll see if I can determine exactly what I did to fix it.

-Sean
#2
01/03/2009 (8:33 pm)
Thats a pretty strange result.

You mention enabling an onboard HD Audio device... that means you have two audio output devices. Now that its working... which audio device is it using for XAudio and Dsound? If you disable the onboard device again does XAudio and Dsound stop working again?
#3
01/03/2009 (10:03 pm)
I've tried it with both devices, and both work right now. I'll try disabling it again tonight (I'm not in a good state to reboot right now, way too many windows open working on stuff), and I'll post my results then, I'm equally confused as to what was going on, but the EMU cards are notoriously sketchy for games, so it's not unheard of. Or I could also be nuts... we'll find out soon ;)
#4
01/04/2009 (10:49 pm)
Well, it stopped working again before I even tried disabling the HD Audio device. It must be something screwy with the EMU card only, as torque sees the card as an option, it just won't play audio through it except in OpenAL. I'm guessing since the EMU card uses a fixed sampling rate (set in it's control software, right now set to 44khz instead of 48) it is somehow getting out of sync and not accepting the audio stream. I'll try debugging it later this week if I get time and see what happens, but for now at least I can use the onboard audio chip for tgea, and keep my emu card for music.