aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2010-09-17 20:03:41 +0000
committerJohannes Schickel2010-09-17 20:03:41 +0000
commit5abbe7204eee6af75348c171abafe2767b416002 (patch)
tree50369343d4a1c180be43f73ff1a0cfd0b607a7dd
parenteb400c87876a306339d27b8ec8510cff2f3abee0 (diff)
downloadscummvm-rg350-5abbe7204eee6af75348c171abafe2767b416002.tar.gz
scummvm-rg350-5abbe7204eee6af75348c171abafe2767b416002.tar.bz2
scummvm-rg350-5abbe7204eee6af75348c171abafe2767b416002.zip
CMS: Some constification.
svn-id: r52782
-rw-r--r--sound/softsynth/cms.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/softsynth/cms.cpp b/sound/softsynth/cms.cpp
index 18eb663ca7..88f04a1ab9 100644
--- a/sound/softsynth/cms.cpp
+++ b/sound/softsynth/cms.cpp
@@ -34,7 +34,7 @@
#define LEFT 0x00
#define RIGHT 0x01
-static byte envelope[8][64] = {
+static const byte envelope[8][64] = {
/* zero amplitude */
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -77,7 +77,7 @@ static byte envelope[8][64] = {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15 }
};
-static int amplitude_lookup[16] = {
+static const int amplitude_lookup[16] = {
0*32767/16, 1*32767/16, 2*32767/16, 3*32767/16,
4*32767/16, 5*32767/16, 6*32767/16, 7*32767/16,
8*32767/16, 9*32767/16, 10*32767/16, 11*32767/16,