diff options
Diffstat (limited to 'src/devices/sound/gb.cpp')
| -rw-r--r-- | src/devices/sound/gb.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/sound/gb.cpp b/src/devices/sound/gb.cpp index 58abcfecf15..b83140240d4 100644 --- a/src/devices/sound/gb.cpp +++ b/src/devices/sound/gb.cpp @@ -144,7 +144,7 @@ void gameboy_sound_device::device_start() { m_channel = stream_alloc(0, 2, SAMPLE_RATE_OUTPUT_ADAPTIVE); m_timer = timer_alloc(*this, FUNC(gameboy_sound_device::timer_callback)); - m_timer->adjust(clocks_to_attotime(FRAME_CYCLES/128), 0, clocks_to_attotime(FRAME_CYCLES/128)); + m_timer->adjust_periodic(clocks_to_attotime(FRAME_CYCLES/128)); save_item(NAME(m_last_updated)); save_item(NAME(m_snd_regs)); @@ -175,7 +175,7 @@ void gameboy_sound_device::device_start() void gameboy_sound_device::device_clock_changed() { - m_timer->adjust(clocks_to_attotime(FRAME_CYCLES / 128), 0, clocks_to_attotime(FRAME_CYCLES / 128)); + m_timer->adjust_periodic(clocks_to_attotime(FRAME_CYCLES / 128)); } |
