Commit f15f06af authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

msacm32: Make some data const.

parent 9d1686c8
...@@ -90,7 +90,7 @@ typedef struct tagAcmPcmData { ...@@ -90,7 +90,7 @@ typedef struct tagAcmPcmData {
/* table to list all supported formats... those are the basic ones. this /* table to list all supported formats... those are the basic ones. this
* also helps given a unique index to each of the supported formats * also helps given a unique index to each of the supported formats
*/ */
static struct { static const struct {
int nChannels; int nChannels;
int nBits; int nBits;
int rate; int rate;
...@@ -374,7 +374,10 @@ static void cvtSS168K(const unsigned char* src, int ns, unsigned char* dst) ...@@ -374,7 +374,10 @@ static void cvtSS168K(const unsigned char* src, int ns, unsigned char* dst)
} }
} }
static void (*PCM_ConvertKeepRate[16])(const unsigned char*, int, unsigned char*) = {
typedef void (*PCM_CONVERT_KEEP_RATE)(const unsigned char*, int, unsigned char*);
static const PCM_CONVERT_KEEP_RATE PCM_ConvertKeepRate[16] = {
cvtSS88K, cvtSM88K, cvtMS88K, cvtMM88K, cvtSS88K, cvtSM88K, cvtMS88K, cvtMM88K,
cvtSS816K, cvtSM816K, cvtMS816K, cvtMM816K, cvtSS816K, cvtSM816K, cvtMS816K, cvtMM816K,
cvtSS168K, cvtSM168K, cvtMS168K, cvtMM168K, cvtSS168K, cvtSM168K, cvtMS168K, cvtMM168K,
...@@ -701,8 +704,9 @@ static void cvtMM1616C(DWORD srcRate, const unsigned char* src, LPDWORD nsrc, ...@@ -701,8 +704,9 @@ static void cvtMM1616C(DWORD srcRate, const unsigned char* src, LPDWORD nsrc,
} }
} }
static void (*PCM_ConvertChangeRate[16])(DWORD srcRate, const unsigned char* src, LPDWORD nsrc, typedef void (*PCM_CONVERT_CHANGE_RATE)(DWORD, const unsigned char*, LPDWORD, DWORD, unsigned char*, LPDWORD);
DWORD dstRate, unsigned char* dst, LPDWORD ndst) = {
static const PCM_CONVERT_CHANGE_RATE PCM_ConvertChangeRate[16] = {
cvtSS88C, cvtSM88C, cvtMS88C, cvtMM88C, cvtSS88C, cvtSM88C, cvtMS88C, cvtMM88C,
cvtSS816C, cvtSM816C, cvtMS816C, cvtMM816C, cvtSS816C, cvtSM816C, cvtMS816C, cvtMM816C,
cvtSS168C, cvtSM168C, cvtMS168C, cvtMM168C, cvtSS168C, cvtSM168C, cvtMS168C, cvtMM168C,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment