diff options
Diffstat (limited to 'src/mame/machine/genpin.cpp')
-rw-r--r-- | src/mame/machine/genpin.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mame/machine/genpin.cpp b/src/mame/machine/genpin.cpp index 4702ab1227e..877cb1a5d90 100644 --- a/src/mame/machine/genpin.cpp +++ b/src/mame/machine/genpin.cpp @@ -10,11 +10,11 @@ This is for common pinball machine coding. #include "genpin.h" #include "speaker.h" - -MACHINE_CONFIG_START(genpin_class::genpin_audio) +void genpin_class::genpin_audio(machine_config &config) +{ SPEAKER(config, "mechvol").front_center(); - MCFG_DEVICE_ADD("samples", SAMPLES) - MCFG_SAMPLES_CHANNELS(6) - MCFG_SAMPLES_NAMES(genpin_sample_names) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mechvol", 1.0) -MACHINE_CONFIG_END + SAMPLES(config, m_samples); + m_samples->set_channels(6); + m_samples->set_samples_names(genpin_sample_names); + m_samples->add_route(ALL_OUTPUTS, "mechvol", 1.0); +}
\ No newline at end of file |