summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/vrc6.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/vrc6.cpp')
-rw-r--r--src/devices/sound/vrc6.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/devices/sound/vrc6.cpp b/src/devices/sound/vrc6.cpp
index a377e736301..e632cce1cdb 100644
--- a/src/devices/sound/vrc6.cpp
+++ b/src/devices/sound/vrc6.cpp
@@ -19,7 +19,7 @@
#define DISABLE_VRC6_SOUND // not ready yet
// device type definition
-const device_type VRC6 = device_creator<vrc6snd_device>;
+DEFINE_DEVICE_TYPE(VRC6, vrc6snd_device, "vrc6snd", "Konami VRC6 (Sound)")
//**************************************************************************
// LIVE DEVICE
@@ -30,8 +30,14 @@ const device_type VRC6 = device_creator<vrc6snd_device>;
//-------------------------------------------------
vrc6snd_device::vrc6snd_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
- : device_t(mconfig, VRC6, "VRC6 sound", tag, owner, clock, "vrc6snd", __FILE__),
- device_sound_interface(mconfig, *this), m_freqctrl(0), m_sawrate(0), m_sawfrql(0), m_sawfrqh(0), m_sawclock(0), m_sawaccum(0), m_stream(nullptr)
+ : device_t(mconfig, VRC6, tag, owner, clock)
+ , device_sound_interface(mconfig, *this)
+ , m_freqctrl(0), m_pulsectrl{ 0, 0 }, m_sawrate(0)
+ , m_pulsefrql{ 0, 0 }, m_pulsefrqh{ 0, 0 }, m_pulseduty{ 0, 0 }
+ , m_sawfrql(0), m_sawfrqh(0), m_sawclock(0), m_sawaccum(0)
+ , m_ticks{ 0, 0, 0 }
+ , m_output{ 0, 0, 0 }
+ , m_stream(nullptr)
{
}