diff options
author | mooglyguy <therealmogminer@gmail.com> | 2018-12-20 05:36:31 +0100 |
---|---|---|
committer | mooglyguy <therealmogminer@gmail.com> | 2018-12-20 05:36:55 +0100 |
commit | 32650ee591aad59123d549770ee38b2f627b6236 (patch) | |
tree | a2a304a9cb28f3bf5394ba5e50edbffb5ce2d232 /src/mame/audio/vicdual.cpp | |
parent | ef14630b0f6e1e6e0f87d1e309c195f9c1f4ae63 (diff) |
-bus/nes/jaleco, pt554, bus/nes_ctrl/ctrl, hori, joypad: Removed MCFG and MACHINE_CONFIG macros. [Ryan Holtz]
-sound/asc, lmc1992, nes_apu, samples, video/ppu2c0x, ppu2c0x_vt: Removed MCFG macros. [Ryan Holtz]
-audio/astrof, carnival, cclimber, cinemat, depthch, invinco, pulsar, spacefb, targ, tranqgun, turbo, vicdual
vicdual-97271p, zaxxon: Removed MACHINE_CONFIG macros. [Ryan Holtz]
-drivers/8080bw, astinvad, atarist, blockade, cham24, circus, cosmic, equites, famibox, gottlieb, gotya, gridlee,
homerun, m10, m14, m63, mcr, meadows, mmagic, multigam, mw8080bw, nes, nes_vt, ninjakd2, playch10,
safarir, segag80v, starcrus, starfire, suna8, super80, tankbatt, tattack, thief, tmnt, tnzs, triplhnt, vsnes: Removed MACHINE_CONFIG macros. [Ryan Holtz]
-machine/genpin, mm1kb: Removed MACHINE_CONFIG macros. [Ryan Holtz]
Diffstat (limited to '')
-rw-r--r-- | src/mame/audio/vicdual.cpp | 40 |
1 files changed, 21 insertions, 19 deletions
diff --git a/src/mame/audio/vicdual.cpp b/src/mame/audio/vicdual.cpp index e0ab608bd7b..8a21e9fd788 100644 --- a/src/mame/audio/vicdual.cpp +++ b/src/mame/audio/vicdual.cpp @@ -111,15 +111,16 @@ static const char *const frogs_sample_names[] = }; -MACHINE_CONFIG_START(vicdual_state::frogs_audio) - MCFG_DEVICE_ADD("samples", SAMPLES) - MCFG_SAMPLES_CHANNELS(5) - MCFG_SAMPLES_NAMES(frogs_sample_names) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.35) +void vicdual_state::frogs_audio(machine_config &config) +{ + SAMPLES(config, m_samples); + m_samples->set_channels(5); + m_samples->set_samples_names(frogs_sample_names); + m_samples->add_route(ALL_OUTPUTS, "mono", 0.35); - MCFG_DEVICE_ADD("discrete", DISCRETE, frogs_discrete) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) -MACHINE_CONFIG_END + DISCRETE(config, m_discrete, frogs_discrete); + m_discrete->add_route(ALL_OUTPUTS, "mono", 1.0); +} TIMER_CALLBACK_MEMBER( vicdual_state::frogs_croak_callback ) @@ -444,11 +445,11 @@ static DISCRETE_SOUND_START(headon_discrete) DISCRETE_SOUND_END -MACHINE_CONFIG_START(vicdual_state::headon_audio) - - MCFG_DEVICE_ADD("discrete", DISCRETE, headon_discrete) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) -MACHINE_CONFIG_END +void vicdual_state::headon_audio(machine_config &config) +{ + DISCRETE(config, m_discrete, headon_discrete); + m_discrete->add_route(ALL_OUTPUTS, "mono", 1.0); +} WRITE8_MEMBER( vicdual_state::headon_audio_w ) { @@ -590,12 +591,13 @@ static const char *const brdrline_sample_names[] = }; -MACHINE_CONFIG_START(vicdual_state::brdrline_audio) - MCFG_DEVICE_ADD("samples", SAMPLES) - MCFG_SAMPLES_CHANNELS(7) - MCFG_SAMPLES_NAMES(brdrline_sample_names) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.35) -MACHINE_CONFIG_END +void vicdual_state::brdrline_audio(machine_config &config) +{ + SAMPLES(config, m_samples); + m_samples->set_channels(7); + m_samples->set_samples_names(brdrline_sample_names); + m_samples->add_route(ALL_OUTPUTS, "mono", 0.35); +} WRITE8_MEMBER( vicdual_state::brdrline_audio_w ) { |