Move a warning check earlier
This commit is contained in:
@@ -1958,6 +1958,14 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
|
||||
device->Frequency, device->UpdateSize, device->NumUpdates
|
||||
);
|
||||
|
||||
if((device->UpdateSize&3) != 0)
|
||||
{
|
||||
if((CPUCapFlags&CPU_CAP_SSE))
|
||||
WARN("SSE performs best with multiple of 4 update sizes (%u)\n", device->UpdateSize);
|
||||
if((CPUCapFlags&CPU_CAP_NEON))
|
||||
WARN("NEON performs best with multiple of 4 update sizes (%u)\n", device->UpdateSize);
|
||||
}
|
||||
|
||||
device->Hrtf = NULL;
|
||||
if((device->Flags&DEVICE_HRTF_REQUEST))
|
||||
{
|
||||
@@ -1986,14 +1994,6 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
|
||||
TRACE("BS2B disabled\n");
|
||||
}
|
||||
|
||||
if(!device->Hrtf && (device->UpdateSize&3))
|
||||
{
|
||||
if((CPUCapFlags&CPU_CAP_SSE))
|
||||
WARN("SSE performs best with multiple of 4 update sizes (%u)\n", device->UpdateSize);
|
||||
if((CPUCapFlags&CPU_CAP_NEON))
|
||||
WARN("NEON performs best with multiple of 4 update sizes (%u)\n", device->UpdateSize);
|
||||
}
|
||||
|
||||
aluInitPanning(device);
|
||||
|
||||
/* With HRTF enabled, the channels are virtual and get positioned around
|
||||
|
||||
Reference in New Issue
Block a user