summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/k005289.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-06-23 08:32:42 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-06-23 08:32:42 +0000
commit57c35a0efcd7e1d22b416f34dd58d51673536152 (patch)
treef39b275a1db76b22931656b4f11a35d51c8f79bf /src/emu/sound/k005289.c
parentb3743812df365ec03c4af5985ba7499fdc48fb3a (diff)
From: Atari Ace [mailto:atari_ace@verizon.net]
Subject: [patch] memory_region madness reloaded Hi mamedev, The memory_region and memory_region_length functions are probably the two most common functions in MAME that don't take a machine parameter but should given the syntax of the related apis memory_region_type and memory_region_flags. Clearly they didn't get the parameter because of the sheer number of changes needed to change the apis. This pair of patches makes the change, and deals with the consequences. The second patch then changes the api for memory_region and memory_region_length, and fixes the fallout. It generally plumbs through machine parameters where needed, except for the case of sound apis which I deferred doing so till later. This increased the number of deprecat.h includes by ~50. Given it is a massive patch, there are bound to be a few mistakes in it (I had to make ~20% of the changes by hand), but I exercised care and reviewed the patch several times to minimize the problems.
Diffstat (limited to 'src/emu/sound/k005289.c')
-rw-r--r--src/emu/sound/k005289.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/emu/sound/k005289.c b/src/emu/sound/k005289.c
index 264611ab307..c2e612febd2 100644
--- a/src/emu/sound/k005289.c
+++ b/src/emu/sound/k005289.c
@@ -26,6 +26,7 @@
***************************************************************************/
#include "sndintrf.h"
+#include "deprecat.h"
#include "streams.h"
#include "k005289.h"
@@ -172,7 +173,7 @@ static void *k005289_start(int sndindex, int clock, const void *config)
if (make_mixer_table(info, 2))
return NULL;
- info->sound_prom = memory_region(intf->region);
+ info->sound_prom = memory_region(Machine, intf->region);
/* reset all the voices */
voice[0].frequency = 0;