mirror of
https://github.com/holub/mame
synced 2025-10-06 17:08:28 +03:00
msm5232, okim6376, sprkdev, vlm5030: Eliminate register_postload (nw)
This commit is contained in:
parent
df6ea71aeb
commit
6ebb60f941
@ -37,7 +37,6 @@ void msm5232_device::device_start()
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 11, rate);
|
||||
|
||||
/* register with the save state system */
|
||||
machine().save().register_postload(save_prepost_delegate(FUNC(msm5232_device::postload), this));
|
||||
save_item(NAME(m_EN_out16));
|
||||
save_item(NAME(m_EN_out8));
|
||||
save_item(NAME(m_EN_out4));
|
||||
@ -709,7 +708,7 @@ void msm5232_device::TG_group_advance(int groupidx)
|
||||
|
||||
|
||||
/* MAME Interface */
|
||||
void msm5232_device::postload()
|
||||
void msm5232_device::device_post_load()
|
||||
{
|
||||
init_tables();
|
||||
}
|
||||
|
@ -30,6 +30,7 @@ protected:
|
||||
virtual void device_start() override;
|
||||
virtual void device_stop() override;
|
||||
virtual void device_reset() override;
|
||||
virtual void device_post_load() override;
|
||||
|
||||
// sound stream update overrides
|
||||
virtual void sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples) override;
|
||||
@ -101,7 +102,6 @@ private:
|
||||
void init(int clock, int rate);
|
||||
void EG_voices_advance();
|
||||
void TG_group_advance(int groupidx);
|
||||
void postload();
|
||||
};
|
||||
|
||||
DECLARE_DEVICE_TYPE(MSM5232, msm5232_device)
|
||||
|
@ -355,7 +355,7 @@ void okim6376_device::generate_adpcm(struct ADPCMVoice *voice, int16_t *buffer,
|
||||
|
||||
***********************************************************************************************/
|
||||
|
||||
void okim6376_device::postload()
|
||||
void okim6376_device::device_post_load()
|
||||
{
|
||||
notify_clock_changed();
|
||||
}
|
||||
@ -378,7 +378,7 @@ void okim6376_device::okim6376_state_save_register()
|
||||
{
|
||||
adpcm_state_save_register(&m_voice[j], j);
|
||||
}
|
||||
machine().save().register_postload(save_prepost_delegate(FUNC(okim6376_device::postload), this));
|
||||
|
||||
save_item(NAME(m_command[0]));
|
||||
save_item(NAME(m_command[1]));
|
||||
save_item(NAME(m_stage[0]));
|
||||
|
@ -26,6 +26,7 @@ protected:
|
||||
virtual void device_start() override;
|
||||
virtual void device_reset() override;
|
||||
virtual void device_clock_changed() override;
|
||||
virtual void device_post_load() override;
|
||||
|
||||
// sound stream update overrides
|
||||
virtual void sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples) override;
|
||||
@ -70,7 +71,6 @@ private:
|
||||
|
||||
void oki_process(int channel, int command);
|
||||
void generate_adpcm(struct ADPCMVoice *voice, int16_t *buffer, int samples,int channel);
|
||||
void postload();
|
||||
void okim6376_state_save_register();
|
||||
void adpcm_state_save_register(struct ADPCMVoice *voice, int index);
|
||||
};
|
||||
|
@ -168,8 +168,6 @@ void speaker_sound_device::device_start()
|
||||
save_item(NAME(m_last_update_time));
|
||||
save_item(NAME(m_prevx));
|
||||
save_item(NAME(m_prevy));
|
||||
|
||||
machine().save().register_postload(save_prepost_delegate(FUNC(speaker_sound_device::speaker_postload), this));
|
||||
}
|
||||
|
||||
void speaker_sound_device::device_reset()
|
||||
@ -193,7 +191,7 @@ void speaker_sound_device::device_reset()
|
||||
m_prevx = m_prevy = 0.0;
|
||||
}
|
||||
|
||||
void speaker_sound_device::speaker_postload()
|
||||
void speaker_sound_device::device_post_load()
|
||||
{
|
||||
m_channel_next_sample_time = m_channel_last_sample_time + attotime(0, m_channel_sample_period);
|
||||
m_next_interm_sample_time = m_channel_last_sample_time + attotime(0, m_interm_sample_period);
|
||||
|
@ -32,6 +32,7 @@ protected:
|
||||
// device-level overrides
|
||||
virtual void device_start() override;
|
||||
virtual void device_reset() override;
|
||||
virtual void device_post_load() override;
|
||||
|
||||
// sound stream update overrides
|
||||
virtual void sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples) override;
|
||||
@ -78,8 +79,6 @@ private:
|
||||
int m_interm_sample_index; /* counts interm. samples between stream samples */
|
||||
attotime m_last_update_time; /* internal timestamp */
|
||||
|
||||
void speaker_postload();
|
||||
|
||||
// DC blocker state
|
||||
double m_prevx, m_prevy;
|
||||
|
||||
|
@ -235,7 +235,6 @@ void vlm5030_device::device_start()
|
||||
save_item(NAME(m_target_pitch));
|
||||
save_item(NAME(m_target_k));
|
||||
save_item(NAME(m_x));
|
||||
machine().save().register_postload(save_prepost_delegate(FUNC(vlm5030_device::restore_state), this));
|
||||
}
|
||||
|
||||
//-------------------------------------------------
|
||||
@ -263,6 +262,11 @@ void vlm5030_device::device_reset()
|
||||
setup_parameter( 0x00);
|
||||
}
|
||||
|
||||
void vlm5030_device::device_post_load()
|
||||
{
|
||||
restore_state();
|
||||
}
|
||||
|
||||
void vlm5030_device::rom_bank_updated()
|
||||
{
|
||||
m_channel->update();
|
||||
|
@ -29,6 +29,7 @@ protected:
|
||||
// device-level overrides
|
||||
virtual void device_start() override;
|
||||
virtual void device_reset() override;
|
||||
virtual void device_post_load() override;
|
||||
|
||||
// sound stream update overrides
|
||||
virtual void sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples) override;
|
||||
|
Loading…
Reference in New Issue
Block a user