summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/ym3802.cpp
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2018-01-21 23:42:41 +0100
committer Olivier Galibert <galibert@pobox.com>2018-01-23 10:25:25 +0100
commit03ba80e0ef3e021f6ff89ef91ae5cdce4e24b994 (patch)
treef127b7f533d36df2484f82fcb05cef5f4c04f232 /src/devices/machine/ym3802.cpp
parentf61a64ea29bf46bf2deb2e1fbace5b24f3d7b0aa (diff)
xtal.h is dead, long live to xtal.cpp [O. Galibert]
Diffstat (limited to 'src/devices/machine/ym3802.cpp')
-rw-r--r--src/devices/machine/ym3802.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/machine/ym3802.cpp b/src/devices/machine/ym3802.cpp
index cfc172f28eb..af3d1819f2f 100644
--- a/src/devices/machine/ym3802.cpp
+++ b/src/devices/machine/ym3802.cpp
@@ -143,7 +143,7 @@ void ym3802_device::midi_clk()
void ym3802_device::reset_midi_timer()
{
- uint64_t rate;
+ uint32_t rate;
uint8_t divisor = m_reg[REG_TRR] & 0x1f;
if(!(divisor & 0x10))
@@ -260,7 +260,7 @@ WRITE8_MEMBER(ym3802_device::write)
{
if((data & 0x07) == 2)
{
- uint64_t rate = (m_reg[REG_CCR] & 0x02) ? m_clkm_rate / 4 : m_clkm_rate / 8;
+ const XTAL rate = (m_reg[REG_CCR] & 0x02) ? m_clkm_rate / 4 : m_clkm_rate / 8;
// start message to click counter
m_midi_counter_timer->adjust(attotime::from_hz(rate),0,attotime::from_hz(rate));