[xiph-commits] r11927 - trunk/speex/libspeex

jm at svn.xiph.org jm at svn.xiph.org
Thu Oct 19 17:37:45 PDT 2006


Author: jm
Date: 2006-10-19 17:37:42 -0700 (Thu, 19 Oct 2006)
New Revision: 11927

Modified:
   trunk/speex/libspeex/filters.c
   trunk/speex/libspeex/lbr_48k_tables.c
Log:
making sure all global variables are const (for Symbian users)


Modified: trunk/speex/libspeex/filters.c
===================================================================
--- trunk/speex/libspeex/filters.c	2006-10-18 19:19:11 UTC (rev 11926)
+++ trunk/speex/libspeex/filters.c	2006-10-20 00:37:42 UTC (rev 11927)
@@ -676,21 +676,21 @@
 
 #ifdef FIXED_POINT
 #if 0
-spx_word16_t shift_filt[3][7] = {{-33,    1043,   -4551,   19959,   19959,   -4551,    1043},
+const spx_word16_t shift_filt[3][7] = {{-33,    1043,   -4551,   19959,   19959,   -4551,    1043},
                                  {-98,    1133,   -4425,   29179,    8895,   -2328,     444},
                                  {444,   -2328,    8895,   29179,   -4425,    1133,     -98}};
 #else
-spx_word16_t shift_filt[3][7] = {{-390,    1540,   -4993,   20123,   20123,   -4993,    1540},
+const spx_word16_t shift_filt[3][7] = {{-390,    1540,   -4993,   20123,   20123,   -4993,    1540},
                                 {-1064,    2817,   -6694,   31589,    6837,    -990,    -209},
                                  {-209,    -990,    6837,   31589,   -6694,    2817,   -1064}};
 #endif
 #else
 #if 0
-float shift_filt[3][7] = {{-9.9369e-04, 3.1831e-02, -1.3889e-01, 6.0910e-01, 6.0910e-01, -1.3889e-01, 3.1831e-02},
+const float shift_filt[3][7] = {{-9.9369e-04, 3.1831e-02, -1.3889e-01, 6.0910e-01, 6.0910e-01, -1.3889e-01, 3.1831e-02},
                           {-0.0029937, 0.0345613, -0.1350474, 0.8904793, 0.2714479, -0.0710304, 0.0135403},
                           {0.0135403, -0.0710304, 0.2714479, 0.8904793, -0.1350474, 0.0345613,  -0.0029937}};
 #else
-float shift_filt[3][7] = {{-0.011915f, 0.046995f, -0.152373f, 0.614108f, 0.614108f, -0.152373f, 0.046995f},
+const float shift_filt[3][7] = {{-0.011915f, 0.046995f, -0.152373f, 0.614108f, 0.614108f, -0.152373f, 0.046995f},
                           {-0.0324855f, 0.0859768f, -0.2042986f, 0.9640297f, 0.2086420f, -0.0302054f, -0.0063646f},
                           {-0.0063646f, -0.0302054f, 0.2086420f, 0.9640297f, -0.2042986f, 0.0859768f, -0.0324855f}};
 #endif

Modified: trunk/speex/libspeex/lbr_48k_tables.c
===================================================================
--- trunk/speex/libspeex/lbr_48k_tables.c	2006-10-18 19:19:11 UTC (rev 11926)
+++ trunk/speex/libspeex/lbr_48k_tables.c	2006-10-20 00:37:42 UTC (rev 11927)
@@ -34,7 +34,7 @@
 #endif
 
 
-int dummy_epic_48k_variable=0;
+const int dummy_epic_48k_variable=0;
 #ifdef EPIC_48K
 
 const signed char gain_cdbk_ulbr[192] = {



More information about the commits mailing list