audio: Gracefully handle absence of ALC_SOFT_HRTF;
@@ -31,6 +31,7 @@ void lovrAudioInit() {
lovrThrow("Unable to create OpenAL context");
}
+#if ALC_SOFT_HRTF
static LPALCRESETDEVICESOFT alcResetDeviceSOFT;
alcResetDeviceSOFT = (LPALCRESETDEVICESOFT) alcGetProcAddress(device, "alcResetDeviceSOFT");
state.isSpatialized = alcIsExtensionPresent(device, "ALC_SOFT_HRTF");
@@ -38,6 +39,7 @@ void lovrAudioInit() {
if (state.isSpatialized) {
alcResetDeviceSOFT(device, (ALCint[]) { ALC_HRTF_SOFT, ALC_TRUE, 0 });
}
+#endif
state.device = device;
state.context = context;
