aboutsummaryrefslogtreecommitdiff
path: root/sound/softsynth/mt32
diff options
context:
space:
mode:
authorJerome Fisher2005-07-03 22:56:51 +0000
committerJerome Fisher2005-07-03 22:56:51 +0000
commit407dd03e2862a6eaa96ad1046350a020065c4dc2 (patch)
tree9fd69c8c4be14ff6caff5fba2b735f64600ff14b /sound/softsynth/mt32
parentde14b2337ff9a5a3e620c5d0a75e1df749487e61 (diff)
downloadscummvm-rg350-407dd03e2862a6eaa96ad1046350a020065c4dc2.tar.gz
scummvm-rg350-407dd03e2862a6eaa96ad1046350a020065c4dc2.tar.bz2
scummvm-rg350-407dd03e2862a6eaa96ad1046350a020065c4dc2.zip
- Small changes to sync with Munt.
svn-id: r18488
Diffstat (limited to 'sound/softsynth/mt32')
-rw-r--r--sound/softsynth/mt32/mt32_file.cpp2
-rw-r--r--sound/softsynth/mt32/mt32_file.h2
-rw-r--r--sound/softsynth/mt32/partialManager.cpp6
-rw-r--r--sound/softsynth/mt32/tables.cpp2
4 files changed, 4 insertions, 8 deletions
diff --git a/sound/softsynth/mt32/mt32_file.cpp b/sound/softsynth/mt32/mt32_file.cpp
index 8cf4e14a7d..86cb29fd49 100644
--- a/sound/softsynth/mt32/mt32_file.cpp
+++ b/sound/softsynth/mt32/mt32_file.cpp
@@ -1,4 +1,4 @@
-/* Copyright (c) 2003-2004 Various contributors
+/* Copyright (c) 2003-2005 Various contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
diff --git a/sound/softsynth/mt32/mt32_file.h b/sound/softsynth/mt32/mt32_file.h
index c0fd050e18..5f05c9e9ae 100644
--- a/sound/softsynth/mt32/mt32_file.h
+++ b/sound/softsynth/mt32/mt32_file.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2003-2004 Various contributors
+/* Copyright (c) 2003-2005 Various contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
diff --git a/sound/softsynth/mt32/partialManager.cpp b/sound/softsynth/mt32/partialManager.cpp
index fb6973a0b2..3d3b6302db 100644
--- a/sound/softsynth/mt32/partialManager.cpp
+++ b/sound/softsynth/mt32/partialManager.cpp
@@ -19,11 +19,7 @@
* IN THE SOFTWARE.
*/
-#ifdef __amigaos4__
-#include <strings.h>
-#else
-#include <memory.h>
-#endif
+#include <string.h>
#include "mt32emu.h"
diff --git a/sound/softsynth/mt32/tables.cpp b/sound/softsynth/mt32/tables.cpp
index 199221986e..e12f306cf9 100644
--- a/sound/softsynth/mt32/tables.cpp
+++ b/sound/softsynth/mt32/tables.cpp
@@ -164,7 +164,7 @@ void Tables::initEnvelopes(float samplerate) {
if (elf == 0) {
envDeltaMaxTime[lf] = 63;
} else {
- float cap = 11 * (float)log(elf) + 64;
+ float cap = 11.0f * logf(elf) + 64;
if (cap > 100.0f) {
cap = 100.0f;
}