diff options
Diffstat (limited to 'src/devices/sound/ymf262.cpp')
| -rw-r--r-- | src/devices/sound/ymf262.cpp | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/devices/sound/ymf262.cpp b/src/devices/sound/ymf262.cpp index a7c77f743c7..ecdd55bf23d 100644 --- a/src/devices/sound/ymf262.cpp +++ b/src/devices/sound/ymf262.cpp @@ -86,11 +86,20 @@ void ymf262_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 ymf262_device::device_register_save(save_registrar &save) +{ + // save our data + save.reg(NAME(m_address)) + .reg(NAME(m_fm)); } |
