summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/audio/cclimber.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/audio/cclimber.cpp')
-rw-r--r--src/mame/audio/cclimber.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mame/audio/cclimber.cpp b/src/mame/audio/cclimber.cpp
index 1288bdae653..e09c01bd642 100644
--- a/src/mame/audio/cclimber.cpp
+++ b/src/mame/audio/cclimber.cpp
@@ -57,16 +57,17 @@ void cclimber_audio_device::device_start()
// device_add_mconfig - add device configuration
//-------------------------------------------------
-MACHINE_CONFIG_START(cclimber_audio_device::device_add_mconfig)
+void cclimber_audio_device::device_add_mconfig(machine_config &config)
+{
ay8910_device &aysnd(AY8910(config, "aysnd", SND_CLOCK/2));
aysnd.port_a_write_callback().set(FUNC(cclimber_audio_device::sample_select_w));
aysnd.add_route(ALL_OUTPUTS, ":speaker", 0.5);
- MCFG_DEVICE_ADD("samples", SAMPLES)
- MCFG_SAMPLES_CHANNELS(1)
- MCFG_SAMPLES_START_CB(cclimber_audio_device, sh_start)
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, ":speaker", 0.5)
-MACHINE_CONFIG_END
+ SAMPLES(config, m_samples);
+ m_samples->set_channels(1);
+ m_samples->set_samples_start_callback(FUNC(cclimber_audio_device::sh_start));
+ m_samples->add_route(ALL_OUTPUTS, ":speaker", 0.5);
+}
WRITE8_MEMBER(cclimber_audio_device::sample_select_w)