[Scummvm-git-logs] scummvm master -> 7b8d4f7ae3a1f5e9e72fcb98ecc0c510432503f5

bluegr noreply at scummvm.org
Tue Mar 31 17:12:27 UTC 2026


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
7b8d4f7ae3 AGOS: Fix Elvira 2 Atari ST noise generation


Commit: 7b8d4f7ae3a1f5e9e72fcb98ecc0c510432503f5
    https://github.com/scummvm/scummvm/commit/7b8d4f7ae3a1f5e9e72fcb98ecc0c510432503f5
Author: Robert Megone (robert.megone at gmail.com)
Date: 2026-03-31T20:12:23+03:00

Commit Message:
AGOS: Fix Elvira 2 Atari ST noise generation

Changed paths:
    audio/softsynth/ym2149.cpp


diff --git a/audio/softsynth/ym2149.cpp b/audio/softsynth/ym2149.cpp
index fd3059c5489..7b7d329c3c7 100644
--- a/audio/softsynth/ym2149.cpp
+++ b/audio/softsynth/ym2149.cpp
@@ -534,9 +534,9 @@ uint16 YM2149Emu::envPer(uint8 rHigh, uint8 rLow) {
 }
 
 uint32 YM2149Emu::rndCompute() {
-	uint32 b = (((_rndRack >> 16) ^ (_rndRack >> 13)) & 1);
-	_rndRack = (_rndRack >> 1) | (b << 16);
-	return (_rndRack & 1) ? 0xffff : 0;
+	uint32 b = _rndRack & 1;
+	_rndRack = (_rndRack >> 1) ^ (b ? 0x12000 : 0);
+	return b ? 0xffff : 0;
 }
 
 




More information about the Scummvm-git-logs mailing list