If volume is low, don't erase output, just leave it alone. Fixes missing sound in raimais.

This commit is contained in:
Aaron Giles 2021-03-15 17:23:31 -07:00
parent 531a39ad53
commit 1650f5bf6f

View File

@ -170,12 +170,9 @@ void ymadpcm_a_channel::output(s32 &leftout, s32 &rightout) const
// volume combined instrument and total levels
int vol = (m_regs.instrument_level() ^ 0x1f) + (m_regs.total_level() ^ 0x3f);
// if combined is maximum, output 0
// if combined is maximum, don't add to outputs
if (vol >= 63)
{
leftout = rightout = 0;
return;
}
// convert into a shift and a multiplier
// QUESTION: verify this from other sources