aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
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]);