diff options
author | 2008-12-12 06:11:15 +0000 | |
---|---|---|
committer | 2008-12-12 06:11:15 +0000 | |
commit | b400e7978bb626a14196fae7b45bb89dfeeae249 (patch) | |
tree | 454f1b103d0f8e80e719dbf37251b2304c07a91e /src/emu/sound/2203intf.c | |
parent | 9dc496610928a3adee6c2d46f954634fcb83063a (diff) |
From: Atari Ace [mailto:atari_ace@verizon.net]
Sent: Thursday, December 11, 2008 6:52 PM
To: submit@mamedev.org
Cc: atariace@hotmail.com
Subject: [patch] deprecat.h cpu cleanup
Hi mamedev,
This patch purges the last few uses of deprecat.h from the cpu cores,
plus a handful of other Machine cases elsewhere that were found by
script inspection.
~aa
--
Hi mamedev,
This patch eliminates most uses of deprecat.h in the sound cores by
attaching the device to the state object and using it where
appropriate. Given that all the cpu objects use this convention, and
three sound cores already do this, this seemed an appropriate
approach.
~aa
Diffstat (limited to 'src/emu/sound/2203intf.c')
-rw-r--r-- | src/emu/sound/2203intf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/emu/sound/2203intf.c b/src/emu/sound/2203intf.c index 1f887b5a913..8b37cd5d173 100644 --- a/src/emu/sound/2203intf.c +++ b/src/emu/sound/2203intf.c @@ -1,6 +1,5 @@ #include <math.h> #include "sndintrf.h" -#include "deprecat.h" #include "streams.h" #include "2203intf.h" #include "fm.h" @@ -13,6 +12,7 @@ struct ym2203_info void * chip; void * psg; const ym2203_interface *intf; + const device_config *device; }; @@ -52,7 +52,7 @@ static const ssg_callbacks psgintf = static void IRQHandler(void *param,int irq) { struct ym2203_info *info = param; - if(info->intf->handler) info->intf->handler(Machine, irq); + if(info->intf->handler) info->intf->handler(info->device->machine, irq); } /* Timer overflow callback from timer.c */ @@ -124,6 +124,7 @@ static SND_START( ym2203 ) memset(info, 0, sizeof(*info)); info->intf = intf; + info->device = device; info->psg = ay8910_start_ym(SOUND_YM2203, device, clock, &intf->ay8910_intf); if (!info->psg) return NULL; |