From 713ac9e6790ac5bb9491a893c9b2ee0a693878b7 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 22 Mar 2016 17:52:20 -0700 Subject: Add a specific output for first-order sources --- Alc/panning.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Alc/panning.c') diff --git a/Alc/panning.c b/Alc/panning.c index 16c84b6d..401d29d6 100644 --- a/Alc/panning.c +++ b/Alc/panning.c @@ -646,6 +646,16 @@ ALvoid aluInitPanning(ALCdevice *device) TRACE("Enabling %s-band ambisonic decoder\n", (conf.FreqBands==1)?"single":"dual"); bformatdec_reset(device->AmbiDecoder, &conf, count, device->Frequency, speakermap); ambdec_deinit(&conf); + + if(bformatdec_getOrder(device->AmbiDecoder) >= 2) + { + memset(device->FOAOut.AmbiCoeffs, 0, sizeof(device->FOAOut.AmbiCoeffs)); + device->FOAOut.AmbiCoeffs[0][0] = 1.0f; + device->FOAOut.AmbiCoeffs[1][1] = 1.0f; + device->FOAOut.AmbiCoeffs[2][2] = 1.0f; + device->FOAOut.AmbiCoeffs[3][3] = 1.0f; + } + return; ambi_fail: -- cgit v1.2.3