[Scummvm-git-logs] scummvm master -> e8dffe0efeff00498e9cc55efee8a67510acb2d0
athrxx
noreply at scummvm.org
Thu Feb 29 17:29:05 UTC 2024
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
e8dffe0efe SCUMM: (Loom/Mac) - fix sound player bug
Commit: e8dffe0efeff00498e9cc55efee8a67510acb2d0
https://github.com/scummvm/scummvm/commit/e8dffe0efeff00498e9cc55efee8a67510acb2d0
Author: athrxx (athrxx at scummvm.org)
Date: 2024-02-29T18:28:24+01:00
Commit Message:
SCUMM: (Loom/Mac) - fix sound player bug
Changed paths:
engines/scumm/players/player_mac_new.cpp
diff --git a/engines/scumm/players/player_mac_new.cpp b/engines/scumm/players/player_mac_new.cpp
index 938084a1b72..7c0e5b5866d 100644
--- a/engines/scumm/players/player_mac_new.cpp
+++ b/engines/scumm/players/player_mac_new.cpp
@@ -545,6 +545,7 @@ void MacSndChannel::playNote(uint8 note, uint16 duration) {
void MacSndChannel::quiet() {
_data = nullptr;
_tmrInc = 0;
+ _duration = 0;
}
void MacSndChannel::wait(uint32 duration) {
@@ -557,6 +558,8 @@ void MacSndChannel::wait(uint32 duration) {
void MacSndChannel::flush() {
_sndCmdQueue.clear();
+ _tmrInc = 0;
+ _duration = 0;
}
void MacSndChannel::loadWaveTable(const byte *data, uint16 dataSize) {
More information about the Scummvm-git-logs
mailing list