Warn about HRTF being disabled in the compatibility check function
This commit is contained in:
parent
23bfb03d2a
commit
54b5f35125
@ -1371,12 +1371,8 @@ static ALCboolean UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
|
||||
if(!device->IsLoopbackDevice && GetConfigValueBool(NULL, "hrtf", AL_FALSE))
|
||||
device->Flags |= DEVICE_USE_HRTF;
|
||||
if((device->Flags&DEVICE_USE_HRTF) && !IsHrtfCompatible(device))
|
||||
{
|
||||
ERR("HRTF disabled (format is %uhz %s)\n", device->Frequency, DevFmtChannelsString(device->FmtChans));
|
||||
device->Flags &= ~DEVICE_USE_HRTF;
|
||||
}
|
||||
else
|
||||
TRACE("HRTF %s\n", (device->Flags&DEVICE_USE_HRTF)?"enabled":"disabled");
|
||||
TRACE("HRTF %s\n", (device->Flags&DEVICE_USE_HRTF)?"enabled":"disabled");
|
||||
|
||||
if(!(device->Flags&DEVICE_USE_HRTF) && device->Bs2bLevel > 0 && device->Bs2bLevel <= 6)
|
||||
{
|
||||
|
@ -154,6 +154,9 @@ ALCboolean IsHrtfCompatible(ALCdevice *device)
|
||||
{
|
||||
if(device->FmtChans == DevFmtStereo && device->Frequency == Hrtf.sampleRate)
|
||||
return ALC_TRUE;
|
||||
ERR("Incompatible HRTF format: %s %uhz (%s %uhz needed)\n",
|
||||
DevFmtChannelsString(device->FmtChans), device->Frequency,
|
||||
DevFmtChannelsString(DevFmtStereo), Hrtf.sampleRate);
|
||||
return ALC_FALSE;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user