diff options
author | 2009-08-30 05:42:33 +0000 | |
---|---|---|
committer | 2009-08-30 05:42:33 +0000 | |
commit | 4a80c53a8d5e34cea84cd1f8a0061600a548e354 (patch) | |
tree | cf276b7afe9116bba0ce78ebb421875692287b8f /src/emu/ui.c | |
parent | 6953873e135a319247a2868c796057b9e98dbe99 (diff) |
[from AtariAce]
Hi mamedev,
This patch continues deglobalifying the MAME core, this time targeting
sound.c. The first two patches adds running_machine to apis in
sound.h that lack it (the first patch is generated by the perl script,
the second patch fixes some cases it didn't handle well). The last
patch then removes the globals in the traditional way.
~aa
Diffstat (limited to 'src/emu/ui.c')
-rw-r--r-- | src/emu/ui.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/ui.c b/src/emu/ui.c index 1e5c2803a73..1981264986c 100644 --- a/src/emu/ui.c +++ b/src/emu/ui.c @@ -1576,10 +1576,10 @@ static slider_state *slider_init(running_machine *machine) static INT32 slider_volume(running_machine *machine, void *arg, astring *string, INT32 newval) { if (newval != SLIDER_NOCHANGE) - sound_set_attenuation(newval); + sound_set_attenuation(machine, newval); if (string != NULL) - astring_printf(string, "%3ddB", sound_get_attenuation()); - return sound_get_attenuation(); + astring_printf(string, "%3ddB", sound_get_attenuation(machine)); + return sound_get_attenuation(machine); } |