[Scummvm-git-logs] scummvm master -> 249f2bcd78109543adc5a66f8e585243849d1f5a

sev- noreply at scummvm.org
Thu Jun 19 22:36:19 UTC 2025


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:
249f2bcd78 AGI: Fix "choppy" sound on PCjr on fast notes


Commit: 249f2bcd78109543adc5a66f8e585243849d1f5a
    https://github.com/scummvm/scummvm/commit/249f2bcd78109543adc5a66f8e585243849d1f5a
Author: Sinus (sinus at sinpi.net)
Date: 2025-06-20T00:36:17+02:00

Commit Message:
AGI: Fix "choppy" sound on PCjr on fast notes

Changed paths:
    engines/agi/sound_pcjr.cpp


diff --git a/engines/agi/sound_pcjr.cpp b/engines/agi/sound_pcjr.cpp
index 10faa4416f7..5f1bbbf6636 100644
--- a/engines/agi/sound_pcjr.cpp
+++ b/engines/agi/sound_pcjr.cpp
@@ -273,8 +273,8 @@ int SoundGenPCJr::getNextNote_v2(int ch) {
 			break;
 		}
 
-		_tchannel[ch].genTypePrev = -1;
-		_tchannel[ch].freqCountPrev = -1;
+		tpcm->genTypePrev = tpcm->genType;
+		tpcm->freqCountPrev = tpcm->freqCount;
 
 		// only tone channels dissolve
 		if ((ch != 3) && (_dissolveMethod != 0))    // != noise??
@@ -481,7 +481,7 @@ int SoundGenPCJr::fillSquare(ToneChan *t, int16 *buf, int len) {
 	if (t->freqCount != t->freqCountPrev) {
 		//t->scale = (int)( (double)t->samp->freq*t->freqCount/FREQ_DIV * MULT + 0.5);
 		t->scale = (SAMPLE_RATE / 2) * t->freqCount;
-		t->count = t->scale;
+		//t->count = t->scale;
 		t->freqCountPrev = t->freqCount;
 	}
 




More information about the Scummvm-git-logs mailing list