diff options
author | 2011-04-18 20:06:43 +0000 | |
---|---|---|
committer | 2011-04-18 20:06:43 +0000 | |
commit | fecfc465df47655554aeb0ea33eccb0f33d498a7 (patch) | |
tree | 842317d1595fa823a6bd290b7667a66d2fc09a81 /src/emu/sound/cdp1869.c | |
parent | 4e7f194a638d0955374d2acf984017d5b1ed0e65 (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/cdp1869.c')
-rw-r--r-- | src/emu/sound/cdp1869.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/emu/sound/cdp1869.c b/src/emu/sound/cdp1869.c index f003bed0791..16c54a4e07f 100644 --- a/src/emu/sound/cdp1869.c +++ b/src/emu/sound/cdp1869.c @@ -416,7 +416,7 @@ cdp1869_device::cdp1869_device(running_machine &_machine, const cdp1869_device_c void cdp1869_device::device_start() { // get the screen device - m_screen = m_machine.device<screen_device>(m_config.screen_tag); + m_screen = machine().device<screen_device>(m_config.screen_tag); assert(m_screen != NULL); // resolve callbacks @@ -434,7 +434,7 @@ void cdp1869_device::device_start() initialize_palette(); // create sound stream - m_stream = m_machine.sound().stream_alloc(*this, 0, 1, m_machine.sample_rate()); + m_stream = machine().sound().stream_alloc(*this, 0, 1, machine().sample_rate()); // register for state saving save_item(NAME(m_prd)); @@ -496,7 +496,7 @@ void cdp1869_device::initialize_palette() for (i = 0; i < 8; i++) { - palette_set_color(m_machine, i, get_rgb(i, i, 15)); + palette_set_color(machine(), i, get_rgb(i, i, 15)); } // tone-on-tone display (CFC=1) @@ -504,7 +504,7 @@ void cdp1869_device::initialize_palette() { for (int l = 0; l < 8; l++) { - palette_set_color(m_machine, i, get_rgb(i, c, l)); + palette_set_color(machine(), i, get_rgb(i, c, l)); i++; } } @@ -529,7 +529,7 @@ void cdp1869_device::sound_stream_update(sound_stream &stream, stream_sample_t * double frequency = (clock() / 2) / (512 >> m_tonefreq) / (m_tonediv + 1); // double amplitude = m_toneamp * ((0.78*5) / 15); - int rate = m_machine.sample_rate() / 2; + int rate = machine().sample_rate() / 2; /* get progress through wave */ int incr = m_incr; |