aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-04-14 10:44:57 -0700
committerChris Robinson <[email protected]>2016-04-14 10:44:57 -0700
commitd924e3d6c4aa8cfbc29c5522e16b30f7adaed597 (patch)
tree3eb8d9ad88d5ae981d147d5373d3b0c17cb28fa7 /Alc/ALc.c
parent38247e021a95ef7db368d385479090c6c98e2ba9 (diff)
Split aluInitPanning into separate functions for HRTF or UHJ
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index f7749367..69bf1fd4 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -2132,7 +2132,12 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
bformatdec_free(device->AmbiDecoder);
device->AmbiDecoder = NULL;
}
- aluInitPanning(device);
+ if(device->Hrtf)
+ aluInitHrtfPanning(device);
+ else if(device->Uhj_Encoder)
+ aluInitUhjPanning(device);
+ else
+ aluInitPanning(device);
/* Allocate extra channels for any post-filter output. */
size = device->Dry.NumChannels * sizeof(device->Dry.Buffer[0]);