summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/ymz280b.cpp
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2022-06-16 12:47:52 +0200
committer Olivier Galibert <galibert@pobox.com>2025-04-29 23:06:41 +0200
commit45d4cd52a8194f2ef9e0383cfb2e2a35634af6ff (patch)
tree4e8d8fcb7382a5e9e0bce5ec59939bcfbe67155a /src/devices/sound/ymz280b.cpp
parent5c14bcdfcb4aefb71b5b62387c4ad05dbeb3814e (diff)
full xtal conversionxtal
Diffstat (limited to 'src/devices/sound/ymz280b.cpp')
-rw-r--r--src/devices/sound/ymz280b.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/sound/ymz280b.cpp b/src/devices/sound/ymz280b.cpp
index ef4e9bf1190..d0a2750aa7a 100644
--- a/src/devices/sound/ymz280b.cpp
+++ b/src/devices/sound/ymz280b.cpp
@@ -551,7 +551,7 @@ void ymz280b_device::device_start()
compute_tables();
/* initialize the rest of the structure */
- m_master_clock = (double)clock() / 384.0;
+ m_master_clock = clock() / 384;
m_irq_handler.resolve();
for (int i = 0; i < 8; i++)
@@ -641,7 +641,7 @@ void ymz280b_device::device_reset()
void ymz280b_device::device_clock_changed()
{
- m_master_clock = (double)clock() / 384.0;
+ m_master_clock = clock() / 384;
m_stream->set_sample_rate(INTERNAL_SAMPLE_RATE);
}
@@ -908,7 +908,7 @@ void ymz280b_device::write(offs_t offset, u8 data)
DEFINE_DEVICE_TYPE(YMZ280B, ymz280b_device, "ymz280b", "Yamaha YMZ280B PCMD8")
-ymz280b_device::ymz280b_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock)
+ymz280b_device::ymz280b_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock)
: device_t(mconfig, YMZ280B, tag, owner, clock)
, device_sound_interface(mconfig, *this)
, device_rom_interface(mconfig, *this)