summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/wave.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2018-05-10 00:30:00 +1000
committer Vas Crabb <vas@vastheman.com>2018-05-10 00:30:00 +1000
commite93b99f9364f34bc2b47e389d0afaa61a3f2f307 (patch)
treec3b3ca56af7b43f0a70aeab52ec5bde087670eeb /src/devices/sound/wave.cpp
parent21cadd2246cbc2e0117233b200d1735b31cb4e77 (diff)
(nw) remove more low-value macros and add a couple more constructor options
Diffstat (limited to 'src/devices/sound/wave.cpp')
-rw-r--r--src/devices/sound/wave.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/devices/sound/wave.cpp b/src/devices/sound/wave.cpp
index c7dd698dab6..ac564f70226 100644
--- a/src/devices/sound/wave.cpp
+++ b/src/devices/sound/wave.cpp
@@ -25,13 +25,12 @@
-DEFINE_DEVICE_TYPE(WAVE, wave_device, "wave", "Wave")
+DEFINE_DEVICE_TYPE(WAVE, wave_device, "wave", "Cassette Sound")
wave_device::wave_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: device_t(mconfig, WAVE, tag, owner, clock)
, device_sound_interface(mconfig, *this)
- , m_cassette_tag(nullptr)
- , m_cass(nullptr)
+ , m_cass(*this, finder_base::DUMMY_TAG)
{
}
@@ -47,7 +46,6 @@ void wave_device::device_start()
machine().sound().stream_alloc(*this, 0, 2, machine().sample_rate());
else
machine().sound().stream_alloc(*this, 0, 1, machine().sample_rate());
- m_cass = owner()->subdevice<cassette_image_device>(m_cassette_tag);
}
//-------------------------------------------------