Adjust 7.1 pan law

This commit is contained in:
Jack Andersen 2017-11-27 17:38:58 -10:00
parent 3c7cf5515f
commit b890a76e20
1 changed files with 4 additions and 4 deletions

View File

@ -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;