Merge pull request #4833 from cam900/audio_warpwarp_args

audio/warpwarp.cpp : Simplify handlers, Fix notes
This commit is contained in:
R. Belmont 2019-03-31 10:33:52 -04:00 committed by GitHub
commit ba78001d19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 8 deletions

View File

@ -2,7 +2,7 @@
// copyright-holders:Juergen Buchmueller // copyright-holders:Juergen Buchmueller
/**************************************************************************** /****************************************************************************
* *
* warpwarp.c * warpwarp.cpp
* *
* sound driver * sound driver
* juergen buchmueller <pullmoll@t-online.de>, jan 2000 * juergen buchmueller <pullmoll@t-online.de>, jan 2000
@ -90,7 +90,7 @@ void warpwarp_sound_device::device_timer(emu_timer &timer, device_timer_id id, i
} }
} }
WRITE8_MEMBER( warpwarp_sound_device::sound_w ) void warpwarp_sound_device::sound_w(u8 data)
{ {
m_channel->update(); m_channel->update();
m_sound_latch = data & 0x0f; m_sound_latch = data & 0x0f;
@ -127,13 +127,13 @@ WRITE8_MEMBER( warpwarp_sound_device::sound_w )
} }
} }
WRITE8_MEMBER( warpwarp_sound_device::music1_w ) void warpwarp_sound_device::music1_w(u8 data)
{ {
m_channel->update(); m_channel->update();
m_music1_latch = data & 0x3f; m_music1_latch = data & 0x3f;
} }
WRITE8_MEMBER( warpwarp_sound_device::music2_w ) void warpwarp_sound_device::music2_w(u8 data)
{ {
m_channel->update(); m_channel->update();
m_music2_latch = data & 0x3f; m_music2_latch = data & 0x3f;

View File

@ -18,9 +18,9 @@ public:
}; };
DECLARE_WRITE8_MEMBER( sound_w ); void sound_w(u8 data);
DECLARE_WRITE8_MEMBER( music1_w ); void music1_w(u8 data);
DECLARE_WRITE8_MEMBER( music2_w ); void music2_w(u8 data);
protected: protected:
// device-level overrides // device-level overrides

View File

@ -272,7 +272,7 @@ WRITE8_MEMBER(warpwarp_state::warpwarp_out0_w)
m_ball_v = data; m_ball_v = data;
break; break;
case 2: case 2:
m_warpwarp_sound->sound_w(space,0,data); m_warpwarp_sound->sound_w(data);
break; break;
case 3: case 3:
m_watchdog->reset_w(space,0,data); m_watchdog->reset_w(space,0,data);