summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/gaelco.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/gaelco.h')
-rw-r--r--src/devices/sound/gaelco.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/devices/sound/gaelco.h b/src/devices/sound/gaelco.h
index 897a182a6cd..d046ab791c4 100644
--- a/src/devices/sound/gaelco.h
+++ b/src/devices/sound/gaelco.h
@@ -11,10 +11,10 @@
//**************************************************************************
#define MCFG_GAELCO_SND_DATA(_tag) \
- gaelco_gae1_device::set_snd_data_tag(*device, "^" _tag);
+ downcast<gaelco_gae1_device &>(*device).set_snd_data_tag("^" _tag);
#define MCFG_GAELCO_BANKS(_offs1, _offs2, _offs3, _offs4) \
- gaelco_gae1_device::set_bank_offsets(*device, _offs1, _offs2, _offs3, _offs4);
+ downcast<gaelco_gae1_device &>(*device).set_bank_offsets(_offs1, _offs2, _offs3, _offs4);
//**************************************************************************
@@ -30,14 +30,13 @@ class gaelco_gae1_device : public device_t,
public:
gaelco_gae1_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- static void set_snd_data_tag(device_t &device, const char *tag) { downcast<gaelco_gae1_device &>(device).m_snd_data.set_tag(tag); }
- static void set_bank_offsets(device_t &device, int offs1, int offs2, int offs3, int offs4)
+ void set_snd_data_tag(const char *tag) { m_snd_data.set_tag(tag); }
+ void set_bank_offsets(int offs1, int offs2, int offs3, int offs4)
{
- gaelco_gae1_device &dev = downcast<gaelco_gae1_device &>(device);
- dev.m_banks[0] = offs1;
- dev.m_banks[1] = offs2;
- dev.m_banks[2] = offs3;
- dev.m_banks[3] = offs4;
+ m_banks[0] = offs1;
+ m_banks[1] = offs2;
+ m_banks[2] = offs3;
+ m_banks[3] = offs4;
}
DECLARE_WRITE16_MEMBER( gaelcosnd_w );