From 8ff4a5435614c85e43a3514157537dab80ecb3e7 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 15 Mar 2016 09:07:03 -0700 Subject: Properly handle negative matrix values and fix decoder initialization --- Alc/panning.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Alc/panning.c') diff --git a/Alc/panning.c b/Alc/panning.c index e090461e..c28ca4d6 100644 --- a/Alc/panning.c +++ b/Alc/panning.c @@ -623,7 +623,6 @@ ALvoid aluInitPanning(ALCdevice *device, const AmbDecConf *conf) if(!MakeSpeakerMap(device, conf, speakermap)) goto ambi_fail; - bformatdec_reset(device->AmbiDecoder, conf, count, device->Frequency, speakermap); count = COUNTOF(Ambi3D); chanmap = Ambi3D; @@ -637,6 +636,7 @@ ALvoid aluInitPanning(ALCdevice *device, const AmbDecConf *conf) &device->Dry.NumChannels, AL_FALSE); device->Dry.AmbiScale = ambiscale; + bformatdec_reset(device->AmbiDecoder, conf, count, device->Frequency, speakermap); return; ambi_fail: -- cgit v1.2.3