mirror of
https://github.com/holub/mame
synced 2025-07-03 09:06:08 +03:00
audio/irem.c: work around crash in m52.c games
This commit is contained in:
parent
ba95edcd7e
commit
9adbb4dcf7
@ -174,10 +174,10 @@ WRITE8_MEMBER( irem_audio_device::ay8910_45L_porta_w )
|
|||||||
* 45L 18 IOA3 ==> CH
|
* 45L 18 IOA3 ==> CH
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
m_audio_BD->write_line(data & 0x01 ? 1: 0);
|
if (m_audio_BD) m_audio_BD->write_line(data & 0x01 ? 1: 0);
|
||||||
m_audio_SD->write_line(data & 0x02 ? 1: 0);
|
if (m_audio_SD) m_audio_SD->write_line(data & 0x02 ? 1: 0);
|
||||||
m_audio_OH->write_line(data & 0x04 ? 1: 0);
|
if (m_audio_OH) m_audio_OH->write_line(data & 0x04 ? 1: 0);
|
||||||
m_audio_CH->write_line(data & 0x08 ? 1: 0);
|
if (m_audio_CH) m_audio_CH->write_line(data & 0x08 ? 1: 0);
|
||||||
#ifdef MAME_DEBUG
|
#ifdef MAME_DEBUG
|
||||||
if (data & 0x0f) popmessage("analog sound %x",data&0x0f);
|
if (data & 0x0f) popmessage("analog sound %x",data&0x0f);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user