[Scummvm-git-logs] scummvm master -> 41eda4fe9be98426e55a8ec46969262ef39aefbe
sev-
sev at scummvm.org
Sun May 2 00:25:15 UTC 2021
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:
41eda4fe9b AUDIO: Use template parameter instead of member variable
Commit: 41eda4fe9be98426e55a8ec46969262ef39aefbe
https://github.com/scummvm/scummvm/commit/41eda4fe9be98426e55a8ec46969262ef39aefbe
Author: Gregory Montoir (cyx at users.sourceforge.net)
Date: 2021-05-02T02:25:13+02:00
Commit Message:
AUDIO: Use template parameter instead of member variable
Changed paths:
audio/mods/paula.cpp
diff --git a/audio/mods/paula.cpp b/audio/mods/paula.cpp
index d512c75fb3..b020d8cbf5 100644
--- a/audio/mods/paula.cpp
+++ b/audio/mods/paula.cpp
@@ -179,7 +179,7 @@ inline int mixBuffer(int16 *&buf, const int8 *data, Paula::Offset &offset, frac_
template<bool stereo>
int Paula::readBufferIntern(int16 *buffer, const int numSamples) {
- int samples = _stereo ? numSamples / 2 : numSamples;
+ int samples = stereo ? numSamples / 2 : numSamples;
while (samples > 0) {
// Handle 'interrupts'. This gives subclasses the chance to adjust the channel data
@@ -256,7 +256,7 @@ int Paula::readBufferIntern(int16 *buffer, const int numSamples) {
}
}
- buffer += _stereo ? nSamples * 2 : nSamples;
+ buffer += stereo ? nSamples * 2 : nSamples;
_curInt -= nSamples;
samples -= nSamples;
}
More information about the Scummvm-git-logs
mailing list