diff options
Diffstat (limited to 'src/mame/drivers/twins.c')
-rw-r--r-- | src/mame/drivers/twins.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/mame/drivers/twins.c b/src/mame/drivers/twins.c index b7a2dea899c..a80c9b1e685 100644 --- a/src/mame/drivers/twins.c +++ b/src/mame/drivers/twins.c @@ -186,14 +186,6 @@ static INPUT_PORTS_START(twins) INPUT_PORTS_END -static const ay8910_interface ay8910_config = -{ - AY8910_LEGACY_OUTPUT, - AY8910_DEFAULT_LOADS, - DEVCB_INPUT_PORT("P1"), - DEVCB_INPUT_PORT("P2") -}; - static MACHINE_CONFIG_START( twins, twins_state ) /* basic machine hardware */ MCFG_CPU_ADD("maincpu", V30, 8000000) @@ -218,7 +210,8 @@ static MACHINE_CONFIG_START( twins, twins_state ) MCFG_SPEAKER_STANDARD_MONO("mono") MCFG_SOUND_ADD("aysnd", AY8910, 2000000) - MCFG_SOUND_CONFIG(ay8910_config) + MCFG_AY8910_PORT_A_READ_CB(IOPORT("P1")) + MCFG_AY8910_PORT_B_READ_CB(IOPORT("P2")) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END @@ -308,7 +301,8 @@ static MACHINE_CONFIG_START( twinsa, twins_state ) MCFG_SPEAKER_STANDARD_MONO("mono") MCFG_SOUND_ADD("aysnd", AY8910, XTAL_16MHz/8) /* verified on pcb */ - MCFG_SOUND_CONFIG(ay8910_config) + MCFG_AY8910_PORT_A_READ_CB(IOPORT("P1")) + MCFG_AY8910_PORT_B_READ_CB(IOPORT("P2")) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END |