summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/namconb1.h
diff options
context:
space:
mode:
author superctr <themvrules@gmail.com>2016-08-18 17:42:02 +0200
committer superctr <themvrules@gmail.com>2016-08-18 17:42:02 +0200
commita20a6c6906cd6544f7865c6b6334a9152733da39 (patch)
treeec92d81fc06544bbf9f21ab5dd2d2e4aedf9da49 /src/mame/includes/namconb1.h
parentbffc4d03d8712d9090927d99a6a79e39ff78d812 (diff)
namconb: fix sound timing for some games.
Did some digging into the sound timing issue in certain NB-1 games. It seems like the C75 MCU does not like non-60 hz interrupt intervals, wanting the interrupts to sync with a 120hz internal timer. By moving the interrupt callbacks to separate 60 hz timers (instead of the 59.7 scanline timer), this fixes the sound tempo in nebulray, gslugrsj, gslgr94u and clones, and vshoot.
Diffstat (limited to 'src/mame/includes/namconb1.h')
-rw-r--r--src/mame/includes/namconb1.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mame/includes/namconb1.h b/src/mame/includes/namconb1.h
index 1d3296608b9..7c74be632d4 100644
--- a/src/mame/includes/namconb1.h
+++ b/src/mame/includes/namconb1.h
@@ -113,7 +113,10 @@ public:
UINT32 screen_update_namconb2(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
TIMER_DEVICE_CALLBACK_MEMBER(scantimer);
-
+ TIMER_DEVICE_CALLBACK_MEMBER(mcu_irq0_cb);
+ TIMER_DEVICE_CALLBACK_MEMBER(mcu_irq2_cb);
+ TIMER_DEVICE_CALLBACK_MEMBER(mcu_adc_cb);
+
int NB1objcode2tile(int code);
int NB2objcode2tile(int code);
};