[Scummvm-git-logs] scummvm master -> b24e33defec836fe633beb5c47c9735b6a9221ba
AndywinXp
noreply at scummvm.org
Wed Aug 21 19:01:45 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:
b24e33defe SCUMM: MANIAC (Apple II): add note separation when playing music
Commit: b24e33defec836fe633beb5c47c9735b6a9221ba
https://github.com/scummvm/scummvm/commit/b24e33defec836fe633beb5c47c9735b6a9221ba
Author: as-tb-dev (178102874+as-tb-dev at users.noreply.github.com)
Date: 2024-08-21T21:01:42+02:00
Commit Message:
SCUMM: MANIAC (Apple II): add note separation when playing music
Changed paths:
engines/scumm/players/player_apple2.cpp
diff --git a/engines/scumm/players/player_apple2.cpp b/engines/scumm/players/player_apple2.cpp
index 5b7c07c4128..caec05e94bd 100644
--- a/engines/scumm/players/player_apple2.cpp
+++ b/engines/scumm/players/player_apple2.cpp
@@ -244,8 +244,10 @@ private:
_speakerShiftReg ^= _bitmask1;
}
- if (_speakerShiftReg & 0x1)
- _player->speakerToggle();
+ if (_count < 0xff80) { // add a note separation towards the end of the note, otherwise, play the note
+ if (_speakerShiftReg & 0x1)
+ _player->speakerToggle();
+ }
_speakerShiftReg >>= 1;
_player->generateSamples(42); /* actually 42.5 */
More information about the Scummvm-git-logs
mailing list