[Scummvm-git-logs] scummvm master -> 26f08f13eb28890bca6f0763d4f7fb9761ce80b8
neuromancer
noreply at scummvm.org
Fri Oct 16 11:08:42 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:
26f08f13eb SCUMM: RA2: improved speech audio playback when music is on
Commit: 26f08f13eb28890bca6f0763d4f7fb9761ce80b8
https://github.com/scummvm/scummvm/commit/26f08f13eb28890bca6f0763d4f7fb9761ce80b8
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2026-10-16T13:01:38+02:00
Commit Message:
SCUMM: RA2: improved speech audio playback when music is on
Changed paths:
engines/scumm/smush/rebel/smush_player_ra2.cpp
diff --git a/engines/scumm/smush/rebel/smush_player_ra2.cpp b/engines/scumm/smush/rebel/smush_player_ra2.cpp
index 36e88cb124a..a5f8d1778c8 100644
--- a/engines/scumm/smush/rebel/smush_player_ra2.cpp
+++ b/engines/scumm/smush/rebel/smush_player_ra2.cpp
@@ -125,6 +125,9 @@ SmushPlayerRebel2::SmushPlayerRebel2(ScummEngine_v7 *scumm, IMuseDigital *imuseD
: SmushPlayer(scumm, imuseDigital, insane) {
initGamePlayerFields();
ra2InitAudioTrackSizes();
+ // The original uses a 40/256 music floor and a rate of 256.
+ // Compensate for RebelAudio doubling the configured rate.
+ setGainReductionParams(40, 256 / 2);
}
SmushPlayerRebel2::~SmushPlayerRebel2() {
@@ -1276,7 +1279,8 @@ void SmushPlayerRebel2::handleGameParseNextFrame() {
_startTime = _vm->_system->getMillis();
_pauseTime = 0;
}
- processDispatches(_smushAudioSampleRate / 12);
+ // Queue one frame of audio at the movie's actual playback rate.
+ processDispatches(_smushAudioSampleRate / _speed);
}
void SmushPlayerRebel2::ra2StartLoadPlayback() {
More information about the Scummvm-git-logs
mailing list