From 5abbe7204eee6af75348c171abafe2767b416002 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Fri, 17 Sep 2010 20:03:41 +0000 Subject: CMS: Some constification. svn-id: r52782 --- sound/softsynth/cms.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sound/softsynth/cms.cpp') 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, -- cgit v1.2.3