Welcome!

Final Burn Neo => FBN Discussion => Topic started by: Gab75 on September 09, 2016, 01:39:08 AM

Title: DirectSound or XAudio2
Post by: Gab75 on September 09, 2016, 01:39:08 AM
Hi guys,
trying different settings I noticed that using XAudio2 instead of DirectSound (as audio plugin) the games' framerate is more stable (usually 60/60 fps instead of 57-60/60 fps)... moreover with XAudio2 is selectable an additional effect, the "reverb".
Is there a reason to favour a specific library or can they be used indifferently ? (logically, assuming that both plugins work properly on the system)

Thanks in advance for the answers! :)
Title: Re: DirectSound or XAudio2
Post by: synnchan on October 18, 2016, 04:06:33 PM
I don't really have the answer for this question :( and sorry for digging this rather old thread, but I'd like to ask something related.

After doing some research, I read that "XAudio2 is the successor to DirectSound" and that DirectSound is considered deprecated now. Does that mean XAudio2 has better sound quality than DirectSound, or is it just something about DirectSound having less compatibility with newer systems?
Title: Re: DirectSound or XAudio2
Post by: Gab75 on October 19, 2016, 12:51:37 AM
After doing some research, I read that "XAudio2 is the successor to DirectSound" and that DirectSound is considered deprecated now. Does that mean XAudio2 has better sound quality than DirectSound, or is it just something about DirectSound having less compatibility with newer systems?

Obviously, I don't know much about it... but the XAudio2 library should have better performance than the DirectSound library, but ,as counterpart, it could have "compatibility issues" with the emulation of some audio sub-systems.

Title: Re: DirectSound or XAudio2
Post by: Barry Harris on October 19, 2016, 06:31:28 AM
The timing in FBA is largely controlled by the audio interface. On modern system xAudio2 gives much more consistent performance as you noticed.

On a modern system (Windows 7 and up) you should be using xAudio2. We should probably make it the default option now.
Title: Re: DirectSound or XAudio2
Post by: Gab75 on October 19, 2016, 07:14:44 AM
Indeed using the XAudio2 plugin the framerate is more stable (60/60 fps in almost every condition)... thanks for the clarification! :)
Title: Re: DirectSound or XAudio2
Post by: synnchan on October 19, 2016, 07:20:14 AM
Does DirectSound have any advantage over XAudio2?
Title: Re: DirectSound or XAudio2
Post by: iq_132 on October 19, 2016, 07:28:40 AM
Does DirectSound have any advantage over XAudio2?
The few things I've read suggest no.
Title: Re: DirectSound or XAudio2
Post by: furiadeoso on November 01, 2016, 12:17:24 PM
Indeed using the XAudio2 plugin the framerate is more stable (60/60 fps in almost every condition)... thanks for the clarification! :)
Can be supposed that Xaudio2 is a better option to play online too (bearing in mind that stability)?
Title: Re: DirectSound or XAudio2
Post by: Gab75 on November 01, 2016, 12:46:21 PM
Can be supposed that Xaudio2 is a better option to play online too (bearing in mind that stability)?

I don't use the online functions, so I don't rightly know, but surely (as you wrote) a stable frame rate can help to prevent potential lags/desyncs!
Title: Re: DirectSound or XAudio2
Post by: furiadeoso on November 01, 2016, 01:35:48 PM
I don't use the online functions, so I don't rightly know, but surely (as you wrote) a stable frame rate can help to prevent potential lags/desyncs!
I think the same. Thanks for your comments!
Title: Re: DirectSound or XAudio2
Post by: synnchan on November 05, 2016, 02:25:52 PM
By the way, Gab75, can you name a few games that work better with XAudio2 than DirectSound? I'd like to test them out. :)
Title: Re: DirectSound or XAudio2
Post by: furiadeoso on November 05, 2016, 03:09:41 PM
I've checked it too. 100% stable frame rate and a bit less  resources wasted.
DirectSound have tiny framedrops.
Tested with street fighter III strike.
Xaudio2 allow low pass filtering and reverb.
Title: Re: DirectSound or XAudio2
Post by: Gab75 on November 05, 2016, 03:45:07 PM
By the way, Gab75, can you name a few games that work better with XAudio2 than DirectSound? I'd like to test them out. :)

It's not a matter related to specific games, it's a "general trend"... using the DirectSound API there are small fluctuations in the frame rate with almost all games, often these fluctuations are imperceptible, but sometimes you can notice small indecisions in the animation.
In any case, with a quite modern computer all games emulated by FBA run at "full speed" (DirectSound small fluctuations permitting) in almost every condition! :)
Title: Re: DirectSound or XAudio2
Post by: furiadeoso on November 06, 2016, 12:34:04 AM
I'm not sure but, may increase input lag using Xaudio2. Playing Dimahoo today I felt so.
Title: Re: DirectSound or XAudio2
Post by: Gab75 on November 06, 2016, 01:24:18 AM
I'm not sure but, may increase input lag using Xaudio2. Playing Dimahoo today I felt so.

Did you test the game using the same settings? Different settings may produce a modification in the results...