mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-25 22:05:20 -04:00
disable ALC_HRTF_SOFT (#998)
* add snd_hrtf option, set ALC_HRTF_SOFT to ALC_DONT_CARE_SOFT (taken from GZDoom) * disable HRTF, remove snd_hrtf config option Thanks to Ceski.
This commit is contained in:
parent
cca6449966
commit
573c5e4940
@ -614,6 +614,11 @@ void I_InitSound(void)
|
||||
ALCcontext *context;
|
||||
ALCint srate = -1;
|
||||
|
||||
ALCint attribs[] = { // zero terminated list of integer pairs
|
||||
ALC_HRTF_SOFT, ALC_FALSE,
|
||||
0
|
||||
};
|
||||
|
||||
if (nosfxparm && nomusicparm)
|
||||
{
|
||||
return;
|
||||
@ -635,7 +640,12 @@ void I_InitSound(void)
|
||||
return;
|
||||
}
|
||||
|
||||
context = alcCreateContext(device, NULL);
|
||||
if (alcIsExtensionPresent(device, "ALC_SOFT_HRTF") == AL_FALSE)
|
||||
{
|
||||
attribs[0] = 0;
|
||||
}
|
||||
|
||||
context = alcCreateContext(device, &attribs[0]);
|
||||
if (!context || alcMakeContextCurrent(context) == ALC_FALSE)
|
||||
{
|
||||
fprintf(stderr, "I_InitSound: Error making context.\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user