summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/megacdcd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/megacdcd.cpp')
-rw-r--r--src/mame/machine/megacdcd.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mame/machine/megacdcd.cpp b/src/mame/machine/megacdcd.cpp
index 5620ab2f25c..dd5739a809f 100644
--- a/src/mame/machine/megacdcd.cpp
+++ b/src/mame/machine/megacdcd.cpp
@@ -1154,13 +1154,14 @@ TIMER_DEVICE_CALLBACK_MEMBER( lc89510_temp_device::segacd_access_timer_callback
}
-MACHINE_CONFIG_START(lc89510_temp_device::device_add_mconfig)
- MCFG_TIMER_DRIVER_ADD_PERIODIC("hock_timer", lc89510_temp_device, segacd_access_timer_callback, attotime::from_hz(75))
+void lc89510_temp_device::device_add_mconfig(machine_config &config)
+{
+ TIMER(config, "hock_timer").configure_periodic(FUNC(lc89510_temp_device::segacd_access_timer_callback), attotime::from_hz(75));
- MCFG_DEVICE_ADD( "cdda", CDDA )
- MCFG_SOUND_ROUTE( 0, ":lspeaker", 0.50 ) // TODO: accurate volume balance
- MCFG_SOUND_ROUTE( 1, ":rspeaker", 0.50 )
-MACHINE_CONFIG_END
+ cdda_device &cdda(CDDA(config, "cdda"));
+ cdda.add_route(0, ":lspeaker", 0.50); // TODO: accurate volume balance
+ cdda.add_route(1, ":rspeaker", 0.50);
+}
213d62'>Updated GAME and GAMEL with class name per machine used, for future DRIVER_IN... Miodrag Milanovic2012-08-041-6/+6 * Remove AM_BASE in favor of AM_SHARED + required_shared_ptr. Aaron Giles2012-04-151-4/+4 * MAME going modern part 7 (no whatsnew) Miodrag Milanovic2012-04-061-10/+10 * Moved all drivers to using the paletteram helpers defined in the Aaron Giles2012-04-051-2/+2 * Some formating cleanup (no whatsnew) Miodrag Milanovic2012-04-021-4/+4 * MAME going modern part 2 (no whatsnew) Miodrag Milanovic2012-04-011-14/+14 * MAME going modern part 1 (no whatsnew) Miodrag Milanovic2012-03-311-2/+2 * rom label adjustments to match discussed format. (nw) Scott Stone2012-02-211-2/+2 * Nearly finished making some individual rom name adjustments to ease potential... Scott Stone2012-02-191-2/+2