DirectSound or XAudio2

Started by
5 comments, last by janwinnicki 9 years, 10 months ago

Previously, I used DirectSound and it worked out fantastic. Even on a Windows 8.1 system. The only issue I had was when the "player" approaches a sound located at 0,0,0 - I wanted the volume of the sound to increase based upon it's distance relative to the sound location.

I did some more research and found DirectSound to be depreciated and to use XAudio2. I viewed some tutorials on XAudio2 and got sound playing - however, because it was in a while loop it locked up my editor.

I want more clarification whether or not to use DirectSound even though it's depreciated or continue on with XAudio2? Do modern games still use DirectSound or XAudio2?

Game Engine's WIP Videos - http://www.youtube.com/sicgames88
SIC Games @ GitHub - https://github.com/SICGames?tab=repositories
Simple D2D1 Font Wrapper for D3D11 - https://github.com/SICGames/D2DFontX
Advertisement
If you are starting with one of them, I'd go for xaudio2, because it's the latest available and fully supported. Personally I use FMOD api, works perfect for me, also with 3D/ positional audio.

Crealysm game & engine development: http://www.crealysm.com

Looking for a passionate, disciplined and structured producer? PM me

Yes, XAudio 2 supports even WinXP.

If you are starting with one of them, I'd go for xaudio2, because it's the latest available and fully supported. Personally I use FMOD api, works perfect for me, also with 3D/ positional audio.

I'll try out FMOD only because I heard it on a lot of game titles. However, will there be a issue with compiling the FMOD API library in my game engine Dynamic Library?

Game Engine's WIP Videos - http://www.youtube.com/sicgames88
SIC Games @ GitHub - https://github.com/SICGames?tab=repositories
Simple D2D1 Font Wrapper for D3D11 - https://github.com/SICGames/D2DFontX

FMOD was really easy to implemend! I love it! Great suggestion Cozzie!

Game Engine's WIP Videos - http://www.youtube.com/sicgames88
SIC Games @ GitHub - https://github.com/SICGames?tab=repositories
Simple D2D1 Font Wrapper for D3D11 - https://github.com/SICGames/D2DFontX

You're welcome ;)

Crealysm game & engine development: http://www.crealysm.com

Looking for a passionate, disciplined and structured producer? PM me

What version of FMOD you go with? Studio or Ex?

♫♪♩♫ sound effects ♦ music ♦ for games ♫♪♩♫

This topic is closed to new replies.

Advertisement