summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/speaker.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/speaker.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/speaker.c')
-rw-r--r--src/emu/speaker.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/speaker.c b/src/emu/speaker.c
index 052a581a676..1151fb8306f 100644
--- a/src/emu/speaker.c
+++ b/src/emu/speaker.c
@@ -170,7 +170,7 @@ void speaker_device::device_start()
}
// allocate the mixer stream
- m_mixer_stream = m_machine.sound().stream_alloc(*this, m_auto_allocated_inputs, 1, m_machine.sample_rate());
+ m_mixer_stream = machine().sound().stream_alloc(*this, m_auto_allocated_inputs, 1, machine().sample_rate());
}
@@ -182,7 +182,7 @@ void speaker_device::device_start()
void speaker_device::device_post_load()
{
- m_mixer_stream->set_sample_rate(m_machine.sample_rate());
+ m_mixer_stream->set_sample_rate(machine().sample_rate());
}