summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/2203intf.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-04-11 05:41:46 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-04-11 05:41:46 +0000
commitdbb98c547380ba8c6148f9f49b9bbb81a15d89e5 (patch)
tree325ff3b39776788b20e5a6d02c0428524b1152c3 /src/emu/sound/2203intf.c
parent6331c8d69950041543552fc528018a373e1091ae (diff)
Reduced the number of save state callback types from 3 to 1. The
only remaining form is the one that takes a pointer parameter. Added macros for STATE_PRESAVE and STATE_POSTLOAD to define common functions. Added machine parameter to these functions. Updated all drivers and CPU/sound cores to use the new macros and consolidate on the single function type. As a result pushed the machine parameter through a few initialization stacks. Removed unnecessary postload callbacks which only marked all tiles dirty, since this is done automatically by the tilemap engine.
Diffstat (limited to 'src/emu/sound/2203intf.c')
-rw-r--r--src/emu/sound/2203intf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/emu/sound/2203intf.c b/src/emu/sound/2203intf.c
index 89cab585db8..09a5c4461e8 100644
--- a/src/emu/sound/2203intf.c
+++ b/src/emu/sound/2203intf.c
@@ -1,5 +1,6 @@
#include <math.h>
#include "sndintrf.h"
+#include "deprecat.h"
#include "streams.h"
#include "2203intf.h"
#include "fm.h"
@@ -97,7 +98,7 @@ static void ym2203_stream_update(void *param, stream_sample_t **inputs, stream_s
}
-static void ym2203_postload(void *param)
+static STATE_POSTLOAD( ym2203_postload )
{
struct ym2203_info *info = param;
YM2203Postload(info->chip);
@@ -128,7 +129,7 @@ static void *ym2203_start(int sndindex, int clock, const void *config)
/* Initialize FM emurator */
info->chip = YM2203Init(info,sndindex,clock,rate,timer_handler,IRQHandler,&psgintf);
- state_save_register_func_postload_ptr(ym2203_postload, info);
+ state_save_register_postload(Machine, ym2203_postload, info);
if (info->chip)
return info;