sms.c: small correction to FM change (nw)

This commit is contained in:
MetalliC 2016-10-14 15:00:35 +03:00
parent f26e087cf0
commit 9b84cebf7d
2 changed files with 8 additions and 8 deletions

View File

@ -128,17 +128,17 @@ WRITE8_MEMBER(sega_fm_unit_device::peripheral_w)
m_audio_control = data & 0x01;
if (m_audio_control == 0x01)
{
m_ym->set_output_gain(0, 1.0);
m_ym->set_output_gain(ALL_OUTPUTS, 1.0);
// assume the PSG output is muted when FM is active.
// Out Run need this. Needs confirmation (see TODO).
if (m_psg.found())
m_psg->set_output_gain(0, 0.0);
m_psg->set_output_gain(ALL_OUTPUTS, 0.0);
}
else
{
m_ym->set_output_gain(0, 0.0);
m_ym->set_output_gain(ALL_OUTPUTS, 0.0);
if (m_psg.found())
m_psg->set_output_gain(0, 1.0);
m_psg->set_output_gain(ALL_OUTPUTS, 1.0);
}
break;
default:

View File

@ -466,14 +466,14 @@ WRITE8_MEMBER(sms_state::smsj_audio_control_w)
1,1 : Both PSG and FM enabled
*/
if (m_smsj_audio_control == 0x00 || m_smsj_audio_control == 0x03)
m_psg_sms->set_output_gain(0, 1.0);
m_psg_sms->set_output_gain(ALL_OUTPUTS, 1.0);
else
m_psg_sms->set_output_gain(0, 0.0);
m_psg_sms->set_output_gain(ALL_OUTPUTS, 0.0);
if (m_smsj_audio_control == 0x01 || m_smsj_audio_control == 0x03)
m_ym->set_output_gain(0, 1.0);
m_ym->set_output_gain(ALL_OUTPUTS, 1.0);
else
m_ym->set_output_gain(0, 0.0);
m_ym->set_output_gain(ALL_OUTPUTS, 0.0);
}