diff options
author | Ivan Vangelista <mesgnet@yahoo.it> | 2014-05-06 17:37:43 +0000 |
---|---|---|
committer | Ivan Vangelista <mesgnet@yahoo.it> | 2014-05-06 17:37:43 +0000 |
commit | da1252459f7578b481e8be16cc701c185e44fc73 (patch) | |
tree | 3c83f920691467be40ee9a63801dd1ab6a4224d4 /src/mame/drivers/aces1.c | |
parent | c407543c9f5ff650f92ab736c0018f2185db7b21 (diff) |
ay8910_device and extended family: converted to devcb2 (nw)
This is easily the commit I ever did that touches the most drivers. I payed extra attention while doing it, stared at the diff really hard to find any errors and did some testing. Obviously I can't test every single game / system, so please report any regression you might find.
Diffstat (limited to 'src/mame/drivers/aces1.c')
-rw-r--r-- | src/mame/drivers/aces1.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/src/mame/drivers/aces1.c b/src/mame/drivers/aces1.c index 2d573ac03ec..5092c13fdb0 100644 --- a/src/mame/drivers/aces1.c +++ b/src/mame/drivers/aces1.c @@ -252,18 +252,6 @@ static INPUT_PORTS_START( aces1 ) INPUT_PORTS_END -// 0xadf0 - Dips, Sound -static const ay8910_interface ay8910_config = -{ - AY8910_LEGACY_OUTPUT, - AY8910_DEFAULT_LOADS, - DEVCB_INPUT_PORT("DSWA"), - DEVCB_INPUT_PORT("DSWB"), - DEVCB_NULL, - DEVCB_NULL -}; - - static MACHINE_CONFIG_START( aces1, aces1_state ) MCFG_CPU_ADD("maincpu", Z80, 4000000) /* ?? Mhz */ @@ -293,8 +281,10 @@ static MACHINE_CONFIG_START( aces1, aces1_state ) /* sound hardware */ MCFG_SPEAKER_STANDARD_MONO("mono") + // 0xadf0 - Dips, Sound MCFG_SOUND_ADD("aysnd", AY8910, 1500000) /* ?? MHz */ - MCFG_SOUND_CONFIG(ay8910_config) + MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSWA")) + MCFG_AY8910_PORT_B_READ_CB(IOPORT("DSWB")) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) MACHINE_CONFIG_END |