diff options
author | 2008-12-04 10:44:15 +0000 | |
---|---|---|
committer | 2008-12-04 10:44:15 +0000 | |
commit | 78622af0ebcb0e21a20c253bdc559734fd1994ed (patch) | |
tree | 691e1b3c3820f8161c2f56270a10df3d1ba1a7fe /src/emu/sound/2203intf.c | |
parent | 5b45ad478fc2806e8a83f2e6687e45e0a85d95a5 (diff) |
This patch furthers the process of aligning the sound cores with the
recent cpu core changes. Specifically, it adds a fake device
implementation similar to the one the cpu cores were using in 128u3
(i.e. it only provides the machine pointer and the token), and makes
some interface adjustments aligned to 128u4 (i.e. adding
snd_class_header, adding get_ to various getter functions). The
primary benefit of this change is the removal of "deprecat.h" from 23
sound cores. I also adjusted ui.c to stop calling sndnum_clock and
access the clock data similarly to how it does the cpu clock data.
[AtariAce]
Diffstat (limited to 'src/emu/sound/2203intf.c')
-rw-r--r-- | src/emu/sound/2203intf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/sound/2203intf.c b/src/emu/sound/2203intf.c index 4446e14bf3d..1c283cc4ec4 100644 --- a/src/emu/sound/2203intf.c +++ b/src/emu/sound/2203intf.c @@ -137,7 +137,7 @@ static SND_START( ym2203 ) /* Initialize FM emurator */ info->chip = ym2203_init(info,tag,clock,rate,timer_handler,IRQHandler,&psgintf); - state_save_register_postload(Machine, ym2203_intf_postload, info); + state_save_register_postload(device->machine, ym2203_intf_postload, info); if (info->chip) return info; @@ -149,14 +149,14 @@ static SND_START( ym2203 ) static SND_STOP( ym2203 ) { - struct ym2203_info *info = token; + struct ym2203_info *info = device->token; ym2203_shutdown(info->chip); ay8910_stop_ym(info->psg); } static SND_RESET( ym2203 ) { - struct ym2203_info *info = token; + struct ym2203_info *info = device->token; ym2203_reset_chip(info->chip); } |