diff options
author | 2014-05-06 17:37:43 +0000 | |
---|---|---|
committer | 2014-05-06 17:37:43 +0000 | |
commit | da1252459f7578b481e8be16cc701c185e44fc73 (patch) | |
tree | 3c83f920691467be40ee9a63801dd1ab6a4224d4 /src/mess/drivers/oric.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/mess/drivers/oric.c')
-rw-r--r-- | src/mess/drivers/oric.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/mess/drivers/oric.c b/src/mess/drivers/oric.c index 6ee1f730fad..6299fc972b7 100644 --- a/src/mess/drivers/oric.c +++ b/src/mess/drivers/oric.c @@ -767,17 +767,6 @@ static INPUT_PORTS_START(telstrat) INPUT_PORTS_END -static const ay8910_interface oric_ay_interface = -{ - AY8910_DISCRETE_OUTPUT, - { 4700, 4700, 4700}, - DEVCB_NULL, - DEVCB_NULL, - DEVCB_DRIVER_MEMBER(oric_state, psg_a_w), - DEVCB_NULL, -}; - - static MACHINE_CONFIG_START( oric, oric_state ) /* basic machine hardware */ MCFG_CPU_ADD("maincpu", M6502, XTAL_12MHz/12) @@ -798,7 +787,9 @@ static MACHINE_CONFIG_START( oric, oric_state ) MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MCFG_SOUND_ADD("ay8912", AY8912, XTAL_12MHz/12) - MCFG_SOUND_CONFIG(oric_ay_interface) + MCFG_AY8910_OUTPUT_TYPE(AY8910_DISCRETE_OUTPUT) + MCFG_AY8910_RES_LOADS(4700, 4700, 4700) + MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(oric_state, psg_a_w)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) /* printer */ |