From 060abb5682f7793f9b4c81ab75947e12e7483736 Mon Sep 17 00:00:00 2001 From: cam900 Date: Mon, 1 Apr 2019 05:57:01 +0900 Subject: m72.cpp : Fix sample rate for m72 PCBs, Add notes (#4291) * m72.cpp : Fix sample rate for m72 PCBs, Add notes * m72.cpp : Fix regression * m72.cpp : Fix copy-n-paste error --- src/mame/drivers/m72.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/mame/drivers/m72.cpp b/src/mame/drivers/m72.cpp index c1546b33b77..0f28dc9212b 100644 --- a/src/mame/drivers/m72.cpp +++ b/src/mame/drivers/m72.cpp @@ -1863,7 +1863,8 @@ void m72_state::m72_base(machine_config &config) void m72_state::m72(machine_config &config) { m72_base(config); - m_soundcpu->set_periodic_int(FUNC(m72_state::fake_nmi), attotime::from_hz(128*55)); /* clocked by V1? (Vigilante) */ + /* Sample rate verified (Gallop : https://youtu.be/aozd0dbPzOw) */ + m_soundcpu->set_periodic_int(FUNC(m72_state::fake_nmi), attotime::from_hz(32000000/8/512)); /* IRQs are generated by main Z80 and YM2151 */ } @@ -1913,7 +1914,8 @@ void m72_state::m72_xmultipl(machine_config &config) m72_8751(config); m_maincpu->set_addrmap(AS_PROGRAM, &m72_state::xmultiplm72_map); - m_soundcpu->set_periodic_int(FUNC(m72_state::nmi_line_pulse), attotime::from_hz(128*55)); /* clocked by V1? (Vigilante) */ + /* Sample rate verified (Gallop : https://youtu.be/aozd0dbPzOw) */ + m_soundcpu->set_periodic_int(FUNC(m72_state::nmi_line_pulse), attotime::from_hz(32000000/8/512)); /* IRQs are generated by main Z80 and YM2151 */ } @@ -1922,7 +1924,8 @@ void m72_state::m72_dbreed(machine_config &config) m72_base(config); m_maincpu->set_addrmap(AS_PROGRAM, &m72_state::dbreedm72_map); - m_soundcpu->set_periodic_int(FUNC(m72_state::nmi_line_pulse), attotime::from_hz(128*55)); /* clocked by V1? (Vigilante) */ + /* Sample rate verified (Gallop : https://youtu.be/aozd0dbPzOw) */ + m_soundcpu->set_periodic_int(FUNC(m72_state::nmi_line_pulse), attotime::from_hz(32000000/8/512)); /* IRQs are generated by main Z80 and YM2151 */ } -- cgit v1.2.3