diff options
Diffstat (limited to 'src/mame/drivers/cchasm.cpp')
-rw-r--r-- | src/mame/drivers/cchasm.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/mame/drivers/cchasm.cpp b/src/mame/drivers/cchasm.cpp index 7f3de547f0e..31fc3f6c001 100644 --- a/src/mame/drivers/cchasm.cpp +++ b/src/mame/drivers/cchasm.cpp @@ -175,16 +175,14 @@ MACHINE_CONFIG_START(cchasm_state::cchasm) /* sound hardware */ SPEAKER(config, "speaker").front_center(); - MCFG_GENERIC_LATCH_8_ADD("soundlatch") - MCFG_GENERIC_LATCH_8_ADD("soundlatch2") - MCFG_GENERIC_LATCH_8_ADD("soundlatch3") - MCFG_GENERIC_LATCH_8_ADD("soundlatch4") + GENERIC_LATCH_8(config, m_soundlatch); + GENERIC_LATCH_8(config, m_soundlatch2); + GENERIC_LATCH_8(config, m_soundlatch3); + GENERIC_LATCH_8(config, m_soundlatch4); - MCFG_DEVICE_ADD("ay1", AY8910, 1818182) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.2) + AY8910(config, "ay1", 1818182).add_route(ALL_OUTPUTS, "speaker", 0.2); - MCFG_DEVICE_ADD("ay2", AY8910, 1818182) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.2) + AY8910(config, "ay2", 1818182).add_route(ALL_OUTPUTS, "speaker", 0.2); MCFG_DEVICE_ADD("dac1", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) MCFG_DEVICE_ADD("dac2", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) |