[Scummvm-cvs-logs] SF.net SVN: scummvm:[52782] scummvm/trunk/sound/softsynth/cms.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Fri Sep 17 22:03:41 CEST 2010
Revision: 52782
http://scummvm.svn.sourceforge.net/scummvm/?rev=52782&view=rev
Author: lordhoto
Date: 2010-09-17 20:03:41 +0000 (Fri, 17 Sep 2010)
Log Message:
-----------
CMS: Some constification.
Modified Paths:
--------------
scummvm/trunk/sound/softsynth/cms.cpp
Modified: scummvm/trunk/sound/softsynth/cms.cpp
===================================================================
--- scummvm/trunk/sound/softsynth/cms.cpp 2010-09-17 20:03:20 UTC (rev 52781)
+++ scummvm/trunk/sound/softsynth/cms.cpp 2010-09-17 20:03:41 UTC (rev 52782)
@@ -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 @@
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,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list