diff options
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 |
commit | 4ef4464aec13029fa7e394671743e9ea96394528 (patch) | |
tree | 757cd23c65c626d63f4c98afb366362f4c2d6bdb /src/mame/audio/vicdual.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/mame/audio/vicdual.cpp')
-rw-r--r-- | src/mame/audio/vicdual.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/mame/audio/vicdual.cpp b/src/mame/audio/vicdual.cpp index cb2f72a1d18..1b2f6af170b 100644 --- a/src/mame/audio/vicdual.cpp +++ b/src/mame/audio/vicdual.cpp @@ -58,7 +58,7 @@ static const discrete_mixer_desc frogsMixer = 0, RES_K(56), 0, CAP_U(0.1), 0, 10000 }; -static DISCRETE_SOUND_START(frogs) +static DISCRETE_SOUND_START(frogs_discrete) /************************************************ * Input register mapping for frogs * @@ -117,8 +117,7 @@ MACHINE_CONFIG_START(vicdual_state::frogs_audio) MCFG_SAMPLES_NAMES(frogs_sample_names) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.35) - MCFG_DEVICE_ADD("discrete", DISCRETE) - MCFG_DISCRETE_INTF(frogs) + MCFG_DEVICE_ADD("discrete", DISCRETE, frogs_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END @@ -313,7 +312,7 @@ static const discrete_op_amp_filt_info headon_sallen_key_info = CAP_N(470), CAP_N(47), 0 }; -static DISCRETE_SOUND_START(headon) +static DISCRETE_SOUND_START(headon_discrete) /************************************************ * Input register mapping for headon * @@ -447,8 +446,7 @@ DISCRETE_SOUND_END MACHINE_CONFIG_START(vicdual_state::headon_audio) - MCFG_DEVICE_ADD("discrete", DISCRETE) - MCFG_DISCRETE_INTF(headon) + MCFG_DEVICE_ADD("discrete", DISCRETE, headon_discrete) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END @@ -507,7 +505,7 @@ WRITE8_MEMBER( vicdual_state::invho2_audio_w ) #define BRDRLINE_WALK_TRG_SND NODE_97 #define BRDRLINE_CRY_TRG_SND NODE_98 -DISCRETE_SOUND_START(brdrline) +DISCRETE_SOUND_START(brdrline_discrete) /************************************************ * Input register mapping ************************************************/ |