[Scummvm-git-logs] scummvm master -> 2db6e05ef60e9072d98d2715c31243b7b1561047

fracturehill noreply at scummvm.org
Tue Aug 22 10:32:02 UTC 2023


This automated email contains information about 2 new commits which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
3a31521b27 RISCOS: Add log2f to function to link
2db6e05ef6 NANCY: Use log2f instead of log2 in sound code


Commit: 3a31521b27cd0b4a32ea4631fc56c6433b20bfbf
    https://github.com/scummvm/scummvm/commit/3a31521b27cd0b4a32ea4631fc56c6433b20bfbf
Author: Kaloyan Chehlarski (strahy at outlook.com)
Date: 2023-08-22T13:30:34+03:00

Commit Message:
RISCOS: Add log2f to function to link

Changed paths:
    backends/plugins/riscos/riscos-provider.cpp


diff --git a/backends/plugins/riscos/riscos-provider.cpp b/backends/plugins/riscos/riscos-provider.cpp
index 5789a40931d..d36213adf0e 100644
--- a/backends/plugins/riscos/riscos-provider.cpp
+++ b/backends/plugins/riscos/riscos-provider.cpp
@@ -51,6 +51,7 @@ void pluginHack() {
 
 	f = tanhf(f);
 	f = logf(f);
+	f = log2f(f);
 	f = log10f(f);
 	f = lroundf(f);
 	f = expf(f);


Commit: 2db6e05ef60e9072d98d2715c31243b7b1561047
    https://github.com/scummvm/scummvm/commit/2db6e05ef60e9072d98d2715c31243b7b1561047
Author: Kaloyan Chehlarski (strahy at outlook.com)
Date: 2023-08-22T13:31:28+03:00

Commit Message:
NANCY: Use log2f instead of log2 in sound code

Changed paths:
    engines/nancy/sound.cpp


diff --git a/engines/nancy/sound.cpp b/engines/nancy/sound.cpp
index 922bb2ba769..7b75b3e92dc 100644
--- a/engines/nancy/sound.cpp
+++ b/engines/nancy/sound.cpp
@@ -704,9 +704,9 @@ void SoundManager::soundEffectMaintenance(uint16 channelID) {
 		if (dist < chan.effectData->minDistance) {
 			volume = 255;
 		} else if (dist > chan.effectData->maxDistance) {
-			volume = 255.0 / (2 * log2(chan.effectData->maxDistance - chan.effectData->minDistance + 1));
+			volume = 255.0 / (2 * log2f(chan.effectData->maxDistance - chan.effectData->minDistance + 1));
 		} else {
-			float dlog = (2 * log2(dist - chan.effectData->minDistance + 1));
+			float dlog = (2 * log2f(dist - chan.effectData->minDistance + 1));
 			volume = 255.0 / dlog;
 
 			// Sounds that are closer to the listener shouldn't pan as hard




More information about the Scummvm-git-logs mailing list