[Scummvm-git-logs] scummvm master -> 3e55f172d8f9c9d5c692450050254eee5bf4b30c
bluegr
noreply at scummvm.org
Tue Aug 6 17:20:13 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:
3e55f172d8 SOFTSYNTH/PCSPK: fix overflow to allow sounds longer than 97 ms (at 44100 Hz)
Commit: 3e55f172d8f9c9d5c692450050254eee5bf4b30c
https://github.com/scummvm/scummvm/commit/3e55f172d8f9c9d5c692450050254eee5bf4b30c
Author: chillywillysoft (66888046+chillywillysoft at users.noreply.github.com)
Date: 2024-08-06T20:20:09+03:00
Commit Message:
SOFTSYNTH/PCSPK: fix overflow to allow sounds longer than 97 ms (at 44100 Hz)
Changed paths:
audio/softsynth/pcspk.cpp
diff --git a/audio/softsynth/pcspk.cpp b/audio/softsynth/pcspk.cpp
index 7921f8c9533..665fea30350 100644
--- a/audio/softsynth/pcspk.cpp
+++ b/audio/softsynth/pcspk.cpp
@@ -125,7 +125,7 @@ int PCSpeaker::readBuffer(int16 *buffer, const int numSamples) {
_oscLength = (uint32)(_rate / command.frequency);
_oscSamples = 0;
// Length is in microseconds.
- _remainingSamples = (_rate * command.length) / 1000000;
+ _remainingSamples = ((uint64)_rate * (uint64)command.length) / 1000000;
_playForever = false;
_commandActive = true;
}
More information about the Scummvm-git-logs
mailing list