From b890a76e2048ba7ae781af0bfb8fdf2e7ab159f9 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Mon, 27 Nov 2017 17:38:58 -1000 Subject: [PATCH] Adjust 7.1 pan law --- lib/Voice.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Voice.cpp b/lib/Voice.cpp index 0c7f6da..fc95a24 100644 --- a/lib/Voice.cpp +++ b/lib/Voice.cpp @@ -1027,7 +1027,7 @@ void Voice::_panLaw(float coefs[8], float frontPan, float backPan, float totalSp coefs[4] *= -totalSpan * 0.5f + 0.5f; /* LFE */ - coefs[5] = 0.35f; + coefs[5] = 0.25f; break; @@ -1053,14 +1053,14 @@ void Voice::_panLaw(float coefs[8], float frontPan, float backPan, float totalSp coefs[4] *= (totalSpan <= 0.f) ? -totalSpan : 0.f; /* LFE */ - coefs[5] = 0.35f; + coefs[5] = 0.25f; /* Side Left */ - coefs[6] = (backPan <= 0.f) ? -backPan : 0.f; + coefs[6] = -backPan * 0.5f + 0.5f; coefs[6] *= 1.f - std::fabs(totalSpan); /* Side Right */ - coefs[7] = (backPan >= 0.f) ? backPan : 0.f; + coefs[7] = backPan * 0.5f + 0.5f; coefs[7] *= 1.f - std::fabs(totalSpan); break;