mirror of
https://github.com/holub/mame
synced 2025-07-01 08:18:59 +03:00
If volume is low, don't erase output, just leave it alone. Fixes missing sound in raimais.
This commit is contained in:
parent
531a39ad53
commit
1650f5bf6f
@ -170,12 +170,9 @@ void ymadpcm_a_channel::output(s32 &leftout, s32 &rightout) const
|
|||||||
// volume combined instrument and total levels
|
// volume combined instrument and total levels
|
||||||
int vol = (m_regs.instrument_level() ^ 0x1f) + (m_regs.total_level() ^ 0x3f);
|
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)
|
if (vol >= 63)
|
||||||
{
|
|
||||||
leftout = rightout = 0;
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
// convert into a shift and a multiplier
|
// convert into a shift and a multiplier
|
||||||
// QUESTION: verify this from other sources
|
// QUESTION: verify this from other sources
|
||||||
|
Loading…
Reference in New Issue
Block a user