mirror of
https://github.com/holub/mame
synced 2025-06-04 03:46:29 +03:00
update clock after state load
This commit is contained in:
parent
d223b90012
commit
2365613081
@ -130,7 +130,10 @@ void okim6295_device::device_start()
|
|||||||
m_stream = machine().sound().stream_alloc(*this, 0, 1, clock() / divisor);
|
m_stream = machine().sound().stream_alloc(*this, 0, 1, clock() / divisor);
|
||||||
|
|
||||||
save_item(NAME(m_command));
|
save_item(NAME(m_command));
|
||||||
|
save_item(NAME(m_bank_installed));
|
||||||
save_item(NAME(m_bank_offs));
|
save_item(NAME(m_bank_offs));
|
||||||
|
save_item(NAME(m_pin7_state));
|
||||||
|
|
||||||
for (int voicenum = 0; voicenum < OKIM6295_VOICES; voicenum++)
|
for (int voicenum = 0; voicenum < OKIM6295_VOICES; voicenum++)
|
||||||
{
|
{
|
||||||
save_item(NAME(m_voice[voicenum].m_playing), voicenum);
|
save_item(NAME(m_voice[voicenum].m_playing), voicenum);
|
||||||
@ -163,6 +166,7 @@ void okim6295_device::device_reset()
|
|||||||
void okim6295_device::device_post_load()
|
void okim6295_device::device_post_load()
|
||||||
{
|
{
|
||||||
set_bank_base(m_bank_offs);
|
set_bank_base(m_bank_offs);
|
||||||
|
device_clock_changed();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user