-
-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Surround sound support #1255
Comments
Old GoldSrc used A3D. Although we potentially have code for implementing it, it is discontinued, and no compatible emulator was made. A3DLive is just a wrapper that passes sound to DirectSound skipping surround sound. And I personally don't want to add EAX/OpenAL as it doesn't add anything significant to me, except some basic HRTF, but that's it. There was an attempt at adding Steam Audio, but it's problematic to us, as it's non-free and I don't want to pollute the engine further with non-free code. There are plans at adding Sound API #762 which ideally would allow replacing whole sound subsystem in game code, adding whatever you want from SteamAudio to OpenAL and this is what PrimeXT developer is highly interested in. I have some early drafts, but no implementation was done. I'm closing this issue in favor of #762, if you have any thoughts, tell me about it there. |
I agree there's no point to reimplent EAX or A3D, both are still usable on windows 11, but not on other OS. After playing a bit with Xashin hazard course, it seems that it already support some kind of sound effect : But my question was not about EAX or A3D sound effect ,just sound positionning for 4.1 5.1 sound setup, exept if you means that surround sound on original game was only possible with EAX extensions or A3D enabled (which I don't remember). |
4.1 or 5.1 is not supported in any way, sadly. I don't think even GoldSrc supports it with A3D or EAX. If I'm not wrong, it would require rewriting a significant part of the audio mixer, as we're blasting only stereo samples to the audio driver. But it should be possible somehow, as we have the needed data for positioning it to 2 or even more speakers. But I don't have such setup unfortunately. |
I can confirm that GoldSrc were supporting surround sound setup. Note : for the steam version and modern windows (vista and more), it was requiring to use a directsound 3D wrapper (like Creative alchemy) to make surround sound work |
Huh, then maybe it's EAX had a standalone mixer that supported this kind of setup. Looking at OpenAL API, it actually makes sense. |
I just reinstall the won version on my windows 11 system (with a DS3D and EAX wrapper) to do some test. Too bad, having gunfire/voice precise location around you will be missed. |
@Choum28 can you recommend a headphones with 5.1 surround audio? If so, I would like to add it just for the fun of it. |
@a1batross Sadly not, I personnaly use a Logitech Z906 discret speakers system. I know a long time ago some 5.1 headphone were avalaible (with 3 mini jack input), but I don't think that exist anymore. There's also some sound card or software that can use a 5.1 sound input and sent it stereo heaphone and will give you impression that rear sound are really coming behind you like Creative SBX, this do the kjob but this is not as good as real speakers. |
By the way, EAX is just the reverb part of DirectSound3D which is what handles 3D positioning and mixing, alongside the renderer/sound card (like CMSS-3D)
@a1batross Beware of headphone-based virtual surround. The vast majority is complete garbage at positioning because of how 3D audio works. So to test surround sound, I'd suggest setting up HeSuVi (any stereo headphones work, though preferably good ones). That said, while I'm aware it can be tedious to implement, proper 3D audio over headphones (with HRTF) like MetaAudio as shown here or OpenAL Soft on its own would be a much better option. |
Also, Steam Audio is free and open-source now. And even it licensed with Apache-2.0. |
Hi all,
Do you think it's possible to reimplement surround sound support like it was on old gold source version (pre linux HL releasse) ?
Actually it seems limited at stereo only (tested on windows).
The text was updated successfully, but these errors were encountered: