Added some state save items

This commit is contained in:
Michael Zapf 2015-08-23 01:59:52 +02:00
parent b1ce31faeb
commit 0b314ce92b
2 changed files with 16 additions and 0 deletions

View File

@ -1072,6 +1072,21 @@ floppy_sound_device::floppy_sound_device(const machine_config &mconfig, const ch
m_loaded = false;
}
void floppy_sound_device::register_for_save_states()
{
save_item(NAME(m_sampleend_motor));
save_item(NAME(m_samplepos_motor));
save_item(NAME(m_motor_mintime));
save_item(NAME(m_motor_time));
save_item(NAME(m_motor));
save_item(NAME(m_sampleend_step));
save_item(NAME(m_samplestart_step));
save_item(NAME(m_samplepos_step));
save_item(NAME(m_step_mintime));
save_item(NAME(m_step_time));
save_item(NAME(m_step_ignore_time));
}
void floppy_sound_device::device_start()
{
// Read audio samples. The samples are stored in the list m_samples.

View File

@ -275,6 +275,7 @@ public:
void motor(bool on);
void step();
bool samples_loaded() { return m_loaded; }
void register_for_save_states();
protected:
void device_start();