summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/audio/cage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/audio/cage.cpp')
-rw-r--r--src/mame/audio/cage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/audio/cage.cpp b/src/mame/audio/cage.cpp
index 6c474150333..35b1fd1ecec 100644
--- a/src/mame/audio/cage.cpp
+++ b/src/mame/audio/cage.cpp
@@ -330,7 +330,7 @@ void atari_cage_device::update_serial()
m_serial_period_per_word = bit_clock_period * (8 * (((m_tms32031_io_regs[SPORT_GLOBAL_CTL] >> 18) & 3) + 1));
/* compute the step value to stretch this to the sample_rate */
- freq = ATTOSECONDS_TO_HZ(m_serial_period_per_word.attoseconds()) / DAC_BUFFER_CHANNELS;
+ freq = m_serial_period_per_word.as_hz() / DAC_BUFFER_CHANNELS;
if (freq > 0 && freq < 100000)
{
for (int i = 0; i < 4; i++)
@@ -402,7 +402,7 @@ WRITE32_MEMBER( atari_cage_device::tms32031_io_w )
case SPORT_DATA_TX:
#if (DAC_BUFFER_CHANNELS == 4)
- if ((int)ATTOSECONDS_TO_HZ(m_serial_period_per_word.attoseconds()) == 22050*4 && (m_tms32031_io_regs[SPORT_RX_CTL] & 0xff) == 0x62)
+ if (int(m_serial_period_per_word.as_hz()) == 22050*4 && (m_tms32031_io_regs[SPORT_RX_CTL] & 0xff) == 0x62)
m_tms32031_io_regs[SPORT_RX_CTL] ^= 0x800;
#endif
break;