From 78622af0ebcb0e21a20c253bdc559734fd1994ed Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Thu, 4 Dec 2008 10:44:15 +0000 Subject: 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] --- src/emu/sound/2203intf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/emu/sound/2203intf.c') 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); } -- cgit v1.2.3-70-g09d2