summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/audio/tranqgun.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/audio/tranqgun.cpp')
-rw-r--r--src/mame/audio/tranqgun.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mame/audio/tranqgun.cpp b/src/mame/audio/tranqgun.cpp
index 40c320ca967..c63845f5097 100644
--- a/src/mame/audio/tranqgun.cpp
+++ b/src/mame/audio/tranqgun.cpp
@@ -140,11 +140,11 @@ WRITE8_MEMBER( vicdual_state::tranqgun_audio_w )
}
-MACHINE_CONFIG_START(vicdual_state::tranqgun_audio)
-
+void vicdual_state::tranqgun_audio(machine_config &config)
+{
/* samples */
- MCFG_DEVICE_ADD("samples", SAMPLES)
- MCFG_SAMPLES_CHANNELS(8)
- MCFG_SAMPLES_NAMES(tranqgun_sample_names)
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5)
-MACHINE_CONFIG_END
+ SAMPLES(config, m_samples);
+ m_samples->set_channels(8);
+ m_samples->set_samples_names(tranqgun_sample_names);
+ m_samples->add_route(ALL_OUTPUTS, "mono", 0.5);
+}