summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/vip.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2018-05-08 07:35:22 +1000
committer Vas Crabb <vas@vastheman.com>2018-05-08 07:35:22 +1000
commit4ef4464aec13029fa7e394671743e9ea96394528 (patch)
tree757cd23c65c626d63f4c98afb366362f4c2d6bdb /src/mame/drivers/vip.cpp
parent765d625ac78ea14cec1e1a84c56567d980924869 (diff)
Add support for custom device constructors when replacing devices.
Current syntax: MCFG_DEVICE_REPLACE(tag_or_finder, TYPE, ...) Next-generation syntax: TYPE(config.replace(), tag_or_finder, ...) (nw) Kill off some more low-value macros that aren't needed any more, and get rid of the token-pasting voodoo and casts in the discrete sound macros.
Diffstat (limited to 'src/mame/drivers/vip.cpp')
-rw-r--r--src/mame/drivers/vip.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mame/drivers/vip.cpp b/src/mame/drivers/vip.cpp
index 8e1f9b9e062..31e847b9b27 100644
--- a/src/mame/drivers/vip.cpp
+++ b/src/mame/drivers/vip.cpp
@@ -556,7 +556,7 @@ static const discrete_555_desc vip_ca555_a =
DEFAULT_555_VALUES
};
-static DISCRETE_SOUND_START( vip )
+static DISCRETE_SOUND_START( vip_discrete )
DISCRETE_INPUT_LOGIC(NODE_01)
DISCRETE_555_ASTABLE_CV(NODE_02, NODE_01, 470, (int) RES_M(1), (int) CAP_P(470), NODE_01, &vip_ca555_a)
DISCRETE_OUTPUT(NODE_02, 5000)
@@ -739,8 +739,7 @@ MACHINE_CONFIG_START(vip_state::vip)
// sound hardware
MCFG_SPEAKER_STANDARD_MONO("mono")
- MCFG_DEVICE_ADD(DISCRETE_TAG, DISCRETE)
- MCFG_DISCRETE_INTF(vip)
+ MCFG_DEVICE_ADD(DISCRETE_TAG, DISCRETE, vip_discrete)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
MCFG_VIP_BYTEIO_PORT_ADD(VIP_BYTEIO_PORT_TAG, vip_byteio_cards, nullptr, WRITELINE(*this, vip_state, byteio_inst_w))