[Scummvm-git-logs] scummvm master -> a8feac13e72b71c3590870a44f6ea8a609deaba2

AndywinXp noreply at scummvm.org
Tue Dec 31 10:00:01 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:
a8feac13e7 SCUMM: HE: Fix formatting


Commit: a8feac13e72b71c3590870a44f6ea8a609deaba2
    https://github.com/scummvm/scummvm/commit/a8feac13e72b71c3590870a44f6ea8a609deaba2
Author: AndywinXp (andywinxp at gmail.com)
Date: 2024-12-31T10:59:55+01:00

Commit Message:
SCUMM: HE: Fix formatting

Changed paths:
    engines/scumm/he/mixer_he.cpp


diff --git a/engines/scumm/he/mixer_he.cpp b/engines/scumm/he/mixer_he.cpp
index 266ae7d2c52..e9a3812e9e9 100644
--- a/engines/scumm/he/mixer_he.cpp
+++ b/engines/scumm/he/mixer_he.cpp
@@ -607,13 +607,14 @@ bool HEMixer::mixerStartChannel(
 
 			// Fade-in to avoid possible sound popping...
 			byte *dataTmp = data;
-            // Do fade-in only if there's enough samples to do so
+
+            // Do the fade-in only if there's enough samples to do so...
 			if (!is3DOMusic && samplesSize >= rampUpSampleCount) {
 				for (int i = 0; i < rampUpSampleCount; i++) {
 					*dataTmp = 128 + (((*dataTmp - 128) * i) / rampUpSampleCount);
 					dataTmp++;
 				}
-			} else if(samplesSize >= rampUpSampleCount) {
+			} else if (samplesSize >= rampUpSampleCount) {
 				// We can't just ramp volume as done above, we have to take
 				// into account the fact that 3DO music is 8-bit -> signed <-
 				for (int i = 0; i < rampUpSampleCount; i++) {




More information about the Scummvm-git-logs mailing list