diff options
Diffstat (limited to 'src/mame/audio/exidy.cpp')
-rw-r--r-- | src/mame/audio/exidy.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mame/audio/exidy.cpp b/src/mame/audio/exidy.cpp index cc6c5649fbb..a35b169ec45 100644 --- a/src/mame/audio/exidy.cpp +++ b/src/mame/audio/exidy.cpp @@ -24,7 +24,7 @@ * *************************************/ -#define CRYSTAL_OSC (XTAL_3_579545MHz) +#define CRYSTAL_OSC (XTAL(3'579'545)) #define SH8253_CLOCK (CRYSTAL_OSC / 2) #define SH6840_CLOCK (CRYSTAL_OSC / 4) #define SH6532_CLOCK (CRYSTAL_OSC / 4) @@ -196,9 +196,9 @@ void exidy_sound_device::sh6840_register_state_globals() void exidy_sound_device::common_sh_start() { - int sample_rate = SH8253_CLOCK; + int sample_rate = SH8253_CLOCK.value(); - m_sh6840_clocks_per_sample = (int)((double)SH6840_CLOCK / (double)sample_rate * (double)(1 << 24)); + m_sh6840_clocks_per_sample = (int)(SH6840_CLOCK.dvalue() / (double)sample_rate * (double)(1 << 24)); /* allocate the stream */ m_stream = machine().sound().stream_alloc(*this, 0, 1, sample_rate); @@ -505,7 +505,7 @@ WRITE8_MEMBER( exidy_sound_device::sh8253_w ) m_sh8253_timer[chan].clstate = 0; m_sh8253_timer[chan].count = (m_sh8253_timer[chan].count & 0x00ff) | ((data << 8) & 0xff00); if (m_sh8253_timer[chan].count) - m_sh8253_timer[chan].step = m_freq_to_step * (double)SH8253_CLOCK / (double)m_sh8253_timer[chan].count; + m_sh8253_timer[chan].step = m_freq_to_step * SH8253_CLOCK.dvalue() / m_sh8253_timer[chan].count; else m_sh8253_timer[chan].step = 0; } @@ -687,7 +687,7 @@ void venture_sound_device::device_start() m_cvsd = machine().device<hc55516_device>("cvsd"); /* 8253 */ - m_freq_to_step = (double)(1 << 24) / (double)SH8253_CLOCK; + m_freq_to_step = ((1 << 24) / SH8253_CLOCK).dvalue(); save_item(NAME(m_riot_irq_state)); sh8253_register_state_globals(); @@ -837,7 +837,7 @@ MACHINE_CONFIG_END * *************************************/ -#define VICTORY_AUDIO_CPU_CLOCK (XTAL_3_579545MHz / 4) +#define VICTORY_AUDIO_CPU_CLOCK (XTAL(3'579'545) / 4) #define VICTORY_LOG_SOUND 0 @@ -937,7 +937,7 @@ void victory_sound_device::device_start() m_cvsd = machine().device<hc55516_device>("cvsd"); /* 8253 */ - m_freq_to_step = (double)(1 << 24) / (double)SH8253_CLOCK; + m_freq_to_step = ((1 << 24) / SH8253_CLOCK).dvalue(); save_item(NAME(m_riot_irq_state)); sh8253_register_state_globals(); |