summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/cpc/magicsound.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/cpc/magicsound.cpp')
-rw-r--r--src/devices/bus/cpc/magicsound.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/bus/cpc/magicsound.cpp b/src/devices/bus/cpc/magicsound.cpp
index 194791f4a38..70ae9f23b20 100644
--- a/src/devices/bus/cpc/magicsound.cpp
+++ b/src/devices/bus/cpc/magicsound.cpp
@@ -73,7 +73,9 @@ al_magicsound_device::al_magicsound_device(const machine_config &mconfig, const
m_dmac(*this,"dmac"),
m_timer1(*this,"timer1"),
m_timer2(*this,"timer2"),
- m_current_channel(0), m_ramptr(nullptr), m_current_output(0)
+ m_ramptr(*this, ":" RAM_TAG),
+ m_current_channel(0),
+ m_current_output(0)
{
}
@@ -90,8 +92,6 @@ void al_magicsound_device::device_start()
space.install_write_handler(0xfad0,0xfadf, write8sm_delegate(*this, FUNC(al_magicsound_device::volume_w)));
space.install_write_handler(0xfbd0,0xfbdf, write8sm_delegate(*this, FUNC(al_magicsound_device::mapper_w)));
- m_ramptr = machine().device<ram_device>(":" RAM_TAG);
-
save_item(NAME(m_output));
}