summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/fmopl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/fmopl.cpp')
-rw-r--r--src/devices/sound/fmopl.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/devices/sound/fmopl.cpp b/src/devices/sound/fmopl.cpp
index 2e1be1b4266..c7390842710 100644
--- a/src/devices/sound/fmopl.cpp
+++ b/src/devices/sound/fmopl.cpp
@@ -1631,7 +1631,7 @@ void FM_OPL::initialize()
/*logerror("freqbase=%f\n", freqbase);*/
/* Timer base time */
- TimerBase = attotime::from_hz(clock) * 72;
+ TimerBase = clock ? attotime::from_hz(clock) * 72 : attotime::zero;
/* make fnumber -> increment counter table */
for( i=0 ; i < 1024 ; i++ )
@@ -2408,6 +2408,11 @@ static void Y8950_deltat_status_reset(void *chip, uint8_t changebits)
Y8950->STATUS_RESET(changebits);
}
+void y8950_clock_changed(void *chip, uint32_t clock, uint32_t rate)
+{
+ reinterpret_cast<FM_OPL *>(chip)->clock_changed(clock, rate);
+}
+
void *y8950_init(device_t *device, uint32_t clock, uint32_t rate)
{
/* emulator create */