diff options
author | Chris Robinson <[email protected]> | 2016-04-14 10:44:57 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-04-14 10:44:57 -0700 |
commit | d924e3d6c4aa8cfbc29c5522e16b30f7adaed597 (patch) | |
tree | 3eb8d9ad88d5ae981d147d5373d3b0c17cb28fa7 /Alc/ALc.c | |
parent | 38247e021a95ef7db368d385479090c6c98e2ba9 (diff) |
Split aluInitPanning into separate functions for HRTF or UHJ
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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]); |