Move a warning check earlier

This commit is contained in:
Chris Robinson
2014-11-22 04:51:34 -08:00
parent a27e5e1652
commit e41cfeca84
+8 -8
View File
@@ -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