summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/k005289.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-12-05 08:00:13 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-12-05 08:00:13 +0000
commit3c6eacc96f5ede7feec56e345e70af28ba3bed42 (patch)
tree5bea0770d49222e8e0a8836dabb41e0ce4d91008 /src/emu/sound/k005289.c
parent9c88aa96d05c4c88908a571b7581dfc16b9e7e5e (diff)
Changed save state system to accept machine parameters where
appropriate, and to keep all global variables hanging off the machine structure. Once again, this means all state registration call sites have been touched: - state_save_register_global* now takes a machine parameter - state_save_register_item* now takes a machine parameter - added new state_save_register_device_item* which now uses the device name and tag to generate the base name Extended the fake sound devices to have more populated fields. Modified sound cores to use tags from the devices and simplified the start function. Renumbered CPU and sound get/set info constants to align with the device constants, and shared values where they were perfectly aligned. Set the type field in the fake device_configs for CPU and sound chips to a get_info stub which calls through to the CPU and sound specific get_info functions. This means the device_get_info() functions work for CPU and sound cores, even in their fake state. Changed device information getters from device_info() to device_get_info() to match the CPU and sound macros.
Diffstat (limited to 'src/emu/sound/k005289.c')
-rw-r--r--src/emu/sound/k005289.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/sound/k005289.c b/src/emu/sound/k005289.c
index 02147d3fd42..45a2fb2a4eb 100644
--- a/src/emu/sound/k005289.c
+++ b/src/emu/sound/k005289.c
@@ -171,7 +171,7 @@ static SND_START( k005289 )
if (make_mixer_table(info, 2))
return NULL;
- info->sound_prom = memory_region(device->machine, tag);
+ info->sound_prom = device->region;
/* reset all the voices */
voice[0].frequency = 0;