mirror of
https://github.com/holub/mame
synced 2025-04-22 16:31:49 +03:00
sms.c: small correction to FM change (nw)
This commit is contained in:
parent
f26e087cf0
commit
9b84cebf7d
@ -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:
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user