mirror of
https://github.com/holub/mame
synced 2025-05-29 00:53:09 +03:00
Merge pull request #4833 from cam900/audio_warpwarp_args
audio/warpwarp.cpp : Simplify handlers, Fix notes
This commit is contained in:
commit
ba78001d19
@ -2,7 +2,7 @@
|
||||
// copyright-holders:Juergen Buchmueller
|
||||
/****************************************************************************
|
||||
*
|
||||
* warpwarp.c
|
||||
* warpwarp.cpp
|
||||
*
|
||||
* sound driver
|
||||
* 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_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_music1_latch = data & 0x3f;
|
||||
}
|
||||
|
||||
WRITE8_MEMBER( warpwarp_sound_device::music2_w )
|
||||
void warpwarp_sound_device::music2_w(u8 data)
|
||||
{
|
||||
m_channel->update();
|
||||
m_music2_latch = data & 0x3f;
|
||||
|
@ -18,9 +18,9 @@ public:
|
||||
};
|
||||
|
||||
|
||||
DECLARE_WRITE8_MEMBER( sound_w );
|
||||
DECLARE_WRITE8_MEMBER( music1_w );
|
||||
DECLARE_WRITE8_MEMBER( music2_w );
|
||||
void sound_w(u8 data);
|
||||
void music1_w(u8 data);
|
||||
void music2_w(u8 data);
|
||||
|
||||
protected:
|
||||
// device-level overrides
|
||||
|
@ -272,7 +272,7 @@ WRITE8_MEMBER(warpwarp_state::warpwarp_out0_w)
|
||||
m_ball_v = data;
|
||||
break;
|
||||
case 2:
|
||||
m_warpwarp_sound->sound_w(space,0,data);
|
||||
m_warpwarp_sound->sound_w(data);
|
||||
break;
|
||||
case 3:
|
||||
m_watchdog->reset_w(space,0,data);
|
||||
|
Loading…
Reference in New Issue
Block a user