Emitter bug fixes and test macro for amuseplay

This commit is contained in:
Jack Andersen
2017-09-19 23:22:46 -10:00
parent c6781df90a
commit 4b2b86f420
7 changed files with 119 additions and 34 deletions

View File

@@ -192,7 +192,7 @@ std::list<std::shared_ptr<Voice>>::iterator Voice::_destroyVoice(std::list<std::
template <typename T>
static T ApplyVolume(float vol, T samp)
{
return samp * 0.7f * vol;
return samp * vol;
}
void Voice::_procSamplePre(int16_t& samp)
@@ -1003,7 +1003,7 @@ void Voice::_panLaw(float coefs[8], float frontPan, float backPan, float totalSp
coefs[4] *= -totalSpan * 0.5f + 0.5f;
/* LFE */
coefs[5] = 1.f;
coefs[5] = 0.35f;
break;
@@ -1029,7 +1029,7 @@ void Voice::_panLaw(float coefs[8], float frontPan, float backPan, float totalSp
coefs[4] *= (totalSpan <= 0.f) ? -totalSpan : 0.f;
/* LFE */
coefs[5] = 1.f;
coefs[5] = 0.35f;
/* Side Left */
coefs[6] = (backPan <= 0.f) ? -backPan : 0.f;