summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/suna16.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/suna16.cpp')
-rw-r--r--src/mame/drivers/suna16.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/mame/drivers/suna16.cpp b/src/mame/drivers/suna16.cpp
index 6a0e31168e6..8a1a65a6d5c 100644
--- a/src/mame/drivers/suna16.cpp
+++ b/src/mame/drivers/suna16.cpp
@@ -855,13 +855,13 @@ MACHINE_CONFIG_START(suna16_state::bssoccer)
SPEAKER(config, "lspeaker").front_left();
SPEAKER(config, "rspeaker").front_right();
- MCFG_GENERIC_LATCH_8_ADD("soundlatch")
- MCFG_GENERIC_LATCH_8_ADD("soundlatch2")
- MCFG_GENERIC_LATCH_8_ADD("soundlatch3")
+ GENERIC_LATCH_8(config, m_soundlatch);
+ GENERIC_LATCH_8(config, "soundlatch2");
+ GENERIC_LATCH_8(config, "soundlatch3");
- MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(14'318'181)/4) /* 3.579545MHz */
- MCFG_SOUND_ROUTE(0, "lspeaker", 0.2)
- MCFG_SOUND_ROUTE(1, "rspeaker", 0.2)
+ ym2151_device &ymsnd(YM2151(config, "ymsnd", XTAL(14'318'181)/4)); /* 3.579545MHz */
+ ymsnd.add_route(0, "lspeaker", 0.2);
+ ymsnd.add_route(1, "rspeaker", 0.2);
MCFG_DEVICE_ADD("ldac", DAC_4BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.2) // unknown DAC
MCFG_DEVICE_ADD("rdac", DAC_4BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.2) // unknown DAC
@@ -918,12 +918,12 @@ MACHINE_CONFIG_START(suna16_state::uballoon)
SPEAKER(config, "lspeaker").front_left();
SPEAKER(config, "rspeaker").front_right();
- MCFG_GENERIC_LATCH_8_ADD("soundlatch")
- MCFG_GENERIC_LATCH_8_ADD("soundlatch2")
+ GENERIC_LATCH_8(config, m_soundlatch);
+ GENERIC_LATCH_8(config, "soundlatch2");
- MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(14'318'181)/4) /* 3.579545MHz */
- MCFG_SOUND_ROUTE(0, "lspeaker", 0.50)
- MCFG_SOUND_ROUTE(1, "rspeaker", 0.50)
+ ym2151_device &ymsnd(YM2151(config, "ymsnd", XTAL(14'318'181)/4)); /* 3.579545MHz */
+ ymsnd.add_route(0, "lspeaker", 0.50);
+ ymsnd.add_route(1, "rspeaker", 0.50);
MCFG_DEVICE_ADD("ldac", DAC_4BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.25) // unknown DAC
MCFG_DEVICE_ADD("rdac", DAC_4BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.25) // unknown DAC
@@ -975,12 +975,12 @@ MACHINE_CONFIG_START(suna16_state::sunaq)
SPEAKER(config, "lspeaker").front_left();
SPEAKER(config, "rspeaker").front_right();
- MCFG_GENERIC_LATCH_8_ADD("soundlatch")
- MCFG_GENERIC_LATCH_8_ADD("soundlatch2")
+ GENERIC_LATCH_8(config, m_soundlatch);
+ GENERIC_LATCH_8(config, "soundlatch2");
- MCFG_DEVICE_ADD("ymsnd", YM2151, XTAL(14'318'181)/4) /* 3.579545MHz */
- MCFG_SOUND_ROUTE(0, "lspeaker", 0.50)
- MCFG_SOUND_ROUTE(1, "rspeaker", 0.50)
+ ym2151_device &ymsnd(YM2151(config, "ymsnd", XTAL(14'318'181)/4)); /* 3.579545MHz */
+ ymsnd.add_route(0, "lspeaker", 0.50);
+ ymsnd.add_route(1, "rspeaker", 0.50);
MCFG_DEVICE_ADD("ldac", DAC_4BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.25) // unknown DAC
MCFG_DEVICE_ADD("rdac", DAC_4BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.25) // unknown DAC
@@ -1035,13 +1035,13 @@ MACHINE_CONFIG_START(suna16_state::bestbest)
SPEAKER(config, "lspeaker").front_left();
SPEAKER(config, "rspeaker").front_right();
- MCFG_GENERIC_LATCH_8_ADD("soundlatch")
- MCFG_GENERIC_LATCH_8_ADD("soundlatch2")
+ GENERIC_LATCH_8(config, m_soundlatch);
+ GENERIC_LATCH_8(config, "soundlatch2");
- MCFG_DEVICE_ADD("aysnd", AY8910, XTAL(24'000'000)/16) /* 1.5MHz */
- MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, suna16_state, bestbest_ay8910_port_a_w))
- MCFG_SOUND_ROUTE(0, "lspeaker", 1.0)
- MCFG_SOUND_ROUTE(1, "rspeaker", 1.0)
+ ay8910_device &aysnd(AY8910(config, "aysnd", XTAL(24'000'000)/16)); /* 1.5MHz */
+ aysnd.port_a_write_callback().set(FUNC(suna16_state::bestbest_ay8910_port_a_w));
+ aysnd.add_route(0, "lspeaker", 1.0);
+ aysnd.add_route(1, "rspeaker", 1.0);
MCFG_DEVICE_ADD("ymsnd", YM3526, XTAL(24'000'000)/8) /* 3MHz */
MCFG_YM3526_IRQ_HANDLER(INPUTLINE("audiocpu", INPUT_LINE_IRQ0))