summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/harddriv.cpp
diff options
context:
space:
mode:
author Ivan Vangelista <mesgnet@yahoo.it>2018-11-22 18:17:56 +0100
committer Ivan Vangelista <mesgnet@yahoo.it>2018-11-22 18:17:56 +0100
commitfabd214f57445791de064591bd2cede79fe9e6fe (patch)
tree24ce7d827fee914c58314e63a395912b5f04889f /src/mame/drivers/harddriv.cpp
parentc60cee60563fb661f598f50c2c450b194ade9aa3 (diff)
mame/audio: various devcb3ification and demacroification (nw)
Diffstat (limited to 'src/mame/drivers/harddriv.cpp')
-rw-r--r--src/mame/drivers/harddriv.cpp36
1 files changed, 19 insertions, 17 deletions
diff --git a/src/mame/drivers/harddriv.cpp b/src/mame/drivers/harddriv.cpp
index 986e7aaff7f..f4f866cb8b3 100644
--- a/src/mame/drivers/harddriv.cpp
+++ b/src/mame/drivers/harddriv.cpp
@@ -1525,7 +1525,7 @@ MACHINE_CONFIG_START(harddriv_state::driver_msp)
MCFG_TMS340X0_OUTPUT_INT_CB(WRITELINE(*this, harddriv_state, hdmsp_irq_gen))
MCFG_VIDEO_SET_SCREEN("screen")
- MCFG_DEVICE_REMOVE("slapstic")
+ config.device_remove("slapstic");
MACHINE_CONFIG_END
@@ -1564,7 +1564,7 @@ MACHINE_CONFIG_START(harddriv_state::multisync_msp)
MCFG_TMS340X0_OUTPUT_INT_CB(WRITELINE(*this, harddriv_state, hdmsp_irq_gen))
MCFG_VIDEO_SET_SCREEN("screen")
- MCFG_DEVICE_REMOVE("slapstic")
+ config.device_remove("slapstic");
MACHINE_CONFIG_END
@@ -1580,7 +1580,7 @@ MACHINE_CONFIG_START(harddriv_state::multisync2)
MCFG_DEVICE_MODIFY("gsp")
MCFG_DEVICE_PROGRAM_MAP(multisync2_gsp_map)
- MCFG_DEVICE_REMOVE("slapstic")
+ config.device_remove("slapstic");
MACHINE_CONFIG_END
@@ -1864,7 +1864,7 @@ MACHINE_CONFIG_START(stunrun_board_device_state::device_add_mconfig)
MCFG_DEVICE_MODIFY("gsp")
MCFG_TMS340X0_PIXEL_CLOCK(5000000) /* pixel clock */
adsp(config); /* ADSP board */
- MCFG_DEVICE_REMOVE("slapstic")
+ config.device_remove("slapstic");
/* video hardware */
MCFG_SCREEN_MODIFY("screen")
@@ -1873,9 +1873,10 @@ MACHINE_CONFIG_START(stunrun_board_device_state::device_add_mconfig)
/* sund hardware */
SPEAKER(config, "mono").front_center();
- MCFG_ATARI_JSA_II_ADD("jsa", WRITELINE(*this, harddriv_state, sound_int_write_line))
- MCFG_ATARI_JSA_TEST_PORT("IN0", 5)
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
+ ATARI_JSA_II(config, m_jsa, 0);
+ m_jsa->main_int_cb().set(FUNC(harddriv_state::sound_int_write_line));
+ m_jsa->test_read_cb().set_ioport("IN0").bit(5);
+ m_jsa->add_route(ALL_OUTPUTS, "mono", 1.0);
MACHINE_CONFIG_END
/* Steel Talons */
@@ -1927,22 +1928,23 @@ MACHINE_CONFIG_START(steeltal_board_device_state::device_add_mconfig)
/* basic machine hardware */ /* multisync board with MSP */
ds3(config); /* DS III board */
- MCFG_DEVICE_REMOVE("ds3sdsp") /* DS III sound components are not present */
- MCFG_DEVICE_REMOVE("ds3xdsp")
- MCFG_DEVICE_REMOVE("ldac")
- MCFG_DEVICE_REMOVE("rdac")
- MCFG_DEVICE_REMOVE("vref")
- MCFG_DEVICE_REMOVE("lspeaker")
- MCFG_DEVICE_REMOVE("rspeaker")
+ config.device_remove("ds3sdsp"); /* DS III sound components are not present */
+ config.device_remove("ds3xdsp");
+ config.device_remove("ldac");
+ config.device_remove("rdac");
+ config.device_remove("vref");
+ config.device_remove("lspeaker");
+ config.device_remove("rspeaker");
MCFG_ASIC65_ADD("asic65", ASIC65_STEELTAL) /* ASIC65 on DSPCOM board */
/* sund hardware */
SPEAKER(config, "mono").front_center();
- MCFG_ATARI_JSA_III_ADD("jsa", WRITELINE(*this, harddriv_state, sound_int_write_line))
- MCFG_ATARI_JSA_TEST_PORT("IN0", 5)
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
+ ATARI_JSA_III(config, m_jsa, 0);
+ m_jsa->main_int_cb().set(FUNC(harddriv_state::sound_int_write_line));
+ m_jsa->test_read_cb().set_ioport("IN0").bit(5);
+ m_jsa->add_route(ALL_OUTPUTS, "mono", 1.0);
MACHINE_CONFIG_END
/* Street Drivin' */