Half-Life OpenAL (surround and HRTF)

Schedules and announcements about program releases.

Half-Life OpenAL (surround and HRTF)

Postby lagonauta » 2018-6-06 @ 11:20

DO NOT USE THIS ON VAC SECURED SERVERS, YOU MAY GET BANNED. TO BE SURE USE IT WITH STEAM IN OFFLINE MODE.

I was sick of the low audio quality and lack of surround/HRTF from HL1 and started looking to add OpenAL support to HL.
I even started writing my own mod, but I forgot HL is C not C++ so I had to re-think the design I had... However while searching the internet I found a mod called CKF3 whose developers managed to add OpenAL to the game, and it was through a plugin-hook-type-thingy so it should work in any HL1 mod! Even better than what I was going to do!

But it is a little bit buggy, especially when dealing with voices. When I started messing with it the game randomly crashed for no reason after something was played... My hope was lost...
Until I finally found its source code! Everything should be working now after changing the sound backend to use Alure :D

It is good to have HRTF back into HL1 :D
And with room EFX! Nice :)

Never played the game with that much audio sources available, "crossfire" with 31 bots is crazy.

Sadly the EAX 1.0 effects from HL1 are very different from the native software based reverb, but it is good enough...

Source code:
https://github.com/LAGonauta/metahook/

Release:
https://github.com/LAGonauta/metahook/releases/

Video:
https://www.youtube.com/watch?v=FW-6H4M7rwI

Just extract it to your Half-Life folder, create a shortcut just like my sample shortcut (or edit my sample directly, your call), and load it. Happy Half-Life'ing :D

Any help is appreciated, so PRs are welcome. Or fork away, its free ;)

DO NOT USE THIS ON VAC SECURED SERVERS, YOU MAY GET BANNED. TO BE SURE USE IT WITH STEAM IN OFFLINE MODE.
Last edited by lagonauta on 2018-6-25 @ 14:15, edited 6 times in total.
lagonauta
Newbie
 
Posts: 26
Joined: 2015-5-28 @ 10:43

Re: Half-Life OpenAL (surround and HRTF)

Postby lagonauta » 2018-6-19 @ 19:00

Just updated the plugin, now everything should be quite similar to HL1 sound output (but I really dislike linear sound attenuation, ugh. I should make a runtime option...).

Now it uses Alure to help managing all OpenAL sound sources, and libsndfile to decode the audio files.
Tested with OpenAL Soft and A X-Fi Titanium HD :)
lagonauta
Newbie
 
Posts: 26
Joined: 2015-5-28 @ 10:43

Re: Half-Life OpenAL (surround and HRTF)

Postby lagonauta » 2018-6-23 @ 19:08

Another version released!
Version from commit number 5d46bab04d521987435be078967fc8d516762efb.

Now there is occlusion support, device selection support, lots of fixes, the distributed Alure does not depend on libsndfile anymore (decode bug fixed!) and now I feel the reverb is EXACTLY the same as HL1 EAX.
I even fixed this old bug here: https://github.com/ValveSoftware/halflife/issues/1661

I hope you like it, just download from the first post or compile your own library and executable :)
lagonauta
Newbie
 
Posts: 26
Joined: 2015-5-28 @ 10:43


Return to Release Announcements

Who is online

Users browsing this forum: UserCroft and 3 guests