kcat / openal-soft

OpenAL Soft is a software implementation of the OpenAL 3D audio API.
Other
2.23k stars 536 forks source link

Soft OpenAL 1.24 in STALKER games (32 bit) #1062

Closed donizettilorenzo closed 3 days ago

donizettilorenzo commented 6 days ago

It just makes the game crash at start with old alsoft.ini So we must update alsoft.ini too?

donizettilorenzo commented 6 days ago

It's something about the "Dither" and the "Gain Limiter". If I delete those 2 entries in the OLD alsoft.ini then games run.

Those 2 create the problem if not set @ default / deleted from the file

EDIT: the same for "Near-Field Effects".

kcat commented 4 days ago

Can you create a trace log? If you can run it with a debugger and a debugging version of OpenAL Soft, a backtrace could be helpful too. There's no reason dithering or the gain limiter should crash that I can think of. Does it work with other 32-bit games?

donizettilorenzo commented 3 days ago

Maybe how it read the values from the file?

With those I have no crashes (yes, HRTF presets are in another folder):

[General] channels=stereo sample-type=int16 frequency=48000 resampler=bsinc24 stereo-mode=headphones hrtf-mode=full drivers="wasapi,-dsound,-winmm," ambi-format=ambix stereo-encoding=hrtf period_size=160 periods=2 hrtf-paths="C:/openal-soft/HRTF," default-hrtf=CIAIR_48000

[decoder] hq-mode=true distance-comp=false quad=C:/openal-soft-1.24.0-bin/presets/hex-quad.ambdec surround51=C:/openal-soft-1.24.0-bin/presets/itu5.1-nocenter.ambdec surround61=C:/openal-soft-1.24.0-bin/presets/hexagon.ambdec surround71=C:/openal-soft-1.24.0-bin/presets/hexagon.ambdec surround3d71=C:/openal-soft-1.24.0-bin/presets/3D7.1.ambdec

kcat commented 3 days ago

Check to see if it's fixed now with commit b27ef50c5d8b32321527d453145fcaeaa1803755. I notice the distance-comp=false option value that had a bug for boolean options.

donizettilorenzo commented 3 days ago

Problem seems solved! Thanks!