summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/okim6295.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2011-04-18 20:06:43 +0000
committer Aaron Giles <aaron@aarongiles.com>2011-04-18 20:06:43 +0000
commitfecfc465df47655554aeb0ea33eccb0f33d498a7 (patch)
tree842317d1595fa823a6bd290b7667a66d2fc09a81 /src/emu/sound/okim6295.c
parent4e7f194a638d0955374d2acf984017d5b1ed0e65 (diff)
Switch from m_machine to machine() everywhere. In some cases this
meant adding a machine() accessor but it's worth it for consistency. This will allow future changes from reference to pointer to happen transparently for devices. [Aaron Giles] Simple S&R: m_machine( *[^ (!=;]) machine()\1
Diffstat (limited to 'src/emu/sound/okim6295.c')
-rw-r--r--src/emu/sound/okim6295.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/sound/okim6295.c b/src/emu/sound/okim6295.c
index af27711b7d3..c316038f74e 100644
--- a/src/emu/sound/okim6295.c
+++ b/src/emu/sound/okim6295.c
@@ -177,7 +177,7 @@ void okim6295_device::device_start()
// create the stream
int divisor = m_config.m_pin7 ? 132 : 165;
- m_stream = m_machine.sound().stream_alloc(*this, 0, 1, clock() / divisor);
+ m_stream = machine().sound().stream_alloc(*this, 0, 1, clock() / divisor);
save_item(NAME(m_command));
save_item(NAME(m_bank_offs));
@@ -266,7 +266,7 @@ void okim6295_device::set_bank_base(offs_t base)
if (m_bank_installed)
{
m_bank_offs = base;
- memory_set_bankptr(m_machine, tag(), m_region->base() + base);
+ memory_set_bankptr(machine(), tag(), m_region->base() + base);
}
}