diff options
author | 2018-05-08 07:35:22 +1000 | |
---|---|---|
committer | 2018-05-08 07:35:22 +1000 | |
commit | 4ef4464aec13029fa7e394671743e9ea96394528 (patch) | |
tree | 757cd23c65c626d63f4c98afb366362f4c2d6bdb /src/devices/bus/abckb/abc77.cpp | |
parent | 765d625ac78ea14cec1e1a84c56567d980924869 (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/devices/bus/abckb/abc77.cpp')
-rw-r--r-- | src/devices/bus/abckb/abc77.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/devices/bus/abckb/abc77.cpp b/src/devices/bus/abckb/abc77.cpp index 87959e8f970..97cce80367f 100644 --- a/src/devices/bus/abckb/abc77.cpp +++ b/src/devices/bus/abckb/abc77.cpp @@ -118,7 +118,7 @@ static const discrete_555_desc abc77_ne556_a = }; -static DISCRETE_SOUND_START( abc77 ) +static DISCRETE_SOUND_START( abc77_discrete ) DISCRETE_INPUT_LOGIC(NODE_01) DISCRETE_555_ASTABLE(NODE_02, NODE_01, (int) RES_K(2.7), (int) RES_K(15), (int) CAP_N(22), &abc77_ne556_a) DISCRETE_OUTPUT(NODE_02, 5000) @@ -145,8 +145,7 @@ MACHINE_CONFIG_START(abc77_device::device_add_mconfig) // discrete sound MCFG_SPEAKER_STANDARD_MONO("mono") - MCFG_DEVICE_ADD(DISCRETE_TAG, DISCRETE, 0) - MCFG_DISCRETE_INTF(abc77) + MCFG_DEVICE_ADD(DISCRETE_TAG, DISCRETE, abc77_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) MACHINE_CONFIG_END |