summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/spkrdev.cpp
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2025-05-05 00:31:02 +0200
committer Olivier Galibert <galibert@pobox.com>2025-05-05 00:31:09 +0200
commitbd99a5d7f88e8547520dbe0b3f7e23c029a03342 (patch)
treeac4277fe8903daf5ab6da4e5306861b86bd9c6c2 /src/devices/sound/spkrdev.cpp
parentfd45caf7f51d85a82c4d04cdebd2257123ec8d6f (diff)
sound: correct sample timings
Diffstat (limited to 'src/devices/sound/spkrdev.cpp')
-rw-r--r--src/devices/sound/spkrdev.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/sound/spkrdev.cpp b/src/devices/sound/spkrdev.cpp
index 841656ab4ac..16dc6199c2f 100644
--- a/src/devices/sound/spkrdev.cpp
+++ b/src/devices/sound/spkrdev.cpp
@@ -268,7 +268,7 @@ void speaker_sound_device::level_w(int new_level)
/* This is redundant because time update has to be done within sound_stream_update() anyway,
* however this ensures synchronization between the speaker and stream timing:
*/
- m_channel_last_sample_time = m_channel->sample_time();
+ m_channel_last_sample_time = m_channel->end_time();
/* sample_time() may be ahead of us */
if (m_channel_last_sample_time > time)