From fecfc465df47655554aeb0ea33eccb0f33d498a7 Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Mon, 18 Apr 2011 20:06:43 +0000 Subject: 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 --- src/emu/speaker.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/emu/speaker.c') 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()); } -- cgit v1.2.3-70-g09d2