diff options
Diffstat (limited to 'src/mame/audio/cclimber.cpp')
-rw-r--r-- | src/mame/audio/cclimber.cpp | 33 |
1 files changed, 12 insertions, 21 deletions
diff --git a/src/mame/audio/cclimber.cpp b/src/mame/audio/cclimber.cpp index a7a2be05318..9da3460cf17 100644 --- a/src/mame/audio/cclimber.cpp +++ b/src/mame/audio/cclimber.cpp @@ -20,17 +20,6 @@ SAMPLES_START_CB_MEMBER( cclimber_audio_device::sh_start ) } } -MACHINE_CONFIG_START( cclimber_audio ) - MCFG_SOUND_ADD("aysnd", AY8910, SND_CLOCK/2) - MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(cclimber_audio_device, sample_select_w)) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, ":speaker", 0.5) - - MCFG_SOUND_ADD("samples", SAMPLES, 0) - MCFG_SAMPLES_CHANNELS(1) - MCFG_SAMPLES_START_CB(cclimber_audio_device, sh_start) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, ":speaker", 0.5) -MACHINE_CONFIG_END - //************************************************************************** // DEVICE DEFINITIONS //************************************************************************** @@ -38,10 +27,6 @@ MACHINE_CONFIG_END DEFINE_DEVICE_TYPE(CCLIMBER_AUDIO, cclimber_audio_device, "cclimber_audio", "Crazy Climber Sound Board") -//************************************************************************** -// JSA IIIS-SPECIFIC IMPLEMENTATION -//************************************************************************** - //------------------------------------------------- // cclimber_audio_device: Constructor //------------------------------------------------- @@ -69,14 +54,20 @@ void cclimber_audio_device::device_start() } //------------------------------------------------- -// device_mconfig_additions - return a pointer to -// the device's machine fragment +// device_add_mconfig - add device configuration //------------------------------------------------- -machine_config_constructor cclimber_audio_device::device_mconfig_additions() const -{ - return MACHINE_CONFIG_NAME( cclimber_audio ); -} +MACHINE_CONFIG_MEMBER( cclimber_audio_device::device_add_mconfig ) + MCFG_SOUND_ADD("aysnd", AY8910, SND_CLOCK/2) + MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(cclimber_audio_device, sample_select_w)) + MCFG_SOUND_ROUTE(ALL_OUTPUTS, ":speaker", 0.5) + + MCFG_SOUND_ADD("samples", SAMPLES, 0) + MCFG_SAMPLES_CHANNELS(1) + MCFG_SAMPLES_START_CB(cclimber_audio_device, sh_start) + MCFG_SOUND_ROUTE(ALL_OUTPUTS, ":speaker", 0.5) +MACHINE_CONFIG_END + WRITE8_MEMBER( cclimber_audio_device::sample_select_w ) { |