summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/ym3526.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/ym3526.cpp')
-rw-r--r--src/devices/sound/ym3526.cpp17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/devices/sound/ym3526.cpp b/src/devices/sound/ym3526.cpp
index 76794058e1e..14e325392d1 100644
--- a/src/devices/sound/ym3526.cpp
+++ b/src/devices/sound/ym3526.cpp
@@ -100,11 +100,20 @@ void ym3526_device::device_start()
// create our stream
m_stream = stream_alloc(0, fm_engine::OUTPUTS, m_fm.sample_rate(clock()));
- // save our data
- save_item(YMFM_NAME(m_address));
+ // initialize the FM engine
+ m_fm.init();
+}
+
+
+//-------------------------------------------------
+// device_register_save - register for save state
+//-------------------------------------------------
- // save the engines
- m_fm.save(*this);
+void ym3526_device::device_register_save(save_registrar &save)
+{
+ // save our data
+ save.reg(NAME(m_address))
+ .reg(NAME(m_fm));
}