imaadp32.acm: Constify some variables.
This commit is contained in:
parent
d517b54c43
commit
ce84a4381c
|
@ -73,7 +73,7 @@ typedef struct
|
||||||
int rate;
|
int rate;
|
||||||
} Format;
|
} Format;
|
||||||
|
|
||||||
static Format PCM_Formats[] =
|
static const Format PCM_Formats[] =
|
||||||
{
|
{
|
||||||
{1, 8, 8000}, {2, 8, 8000}, {1, 16, 8000}, {2, 16, 8000},
|
{1, 8, 8000}, {2, 8, 8000}, {1, 16, 8000}, {2, 16, 8000},
|
||||||
{1, 8, 11025}, {2, 8, 11025}, {1, 16, 11025}, {2, 16, 11025},
|
{1, 8, 11025}, {2, 8, 11025}, {1, 16, 11025}, {2, 16, 11025},
|
||||||
|
@ -81,7 +81,7 @@ static Format PCM_Formats[] =
|
||||||
{1, 8, 44100}, {2, 8, 44100}, {1, 16, 44100}, {2, 16, 44100},
|
{1, 8, 44100}, {2, 8, 44100}, {1, 16, 44100}, {2, 16, 44100},
|
||||||
};
|
};
|
||||||
|
|
||||||
static Format ADPCM_Formats[] =
|
static const Format ADPCM_Formats[] =
|
||||||
{
|
{
|
||||||
{1, 4, 8000}, {2, 4, 8000}, {1, 4, 11025}, {2, 4, 11025},
|
{1, 4, 8000}, {2, 4, 8000}, {1, 4, 11025}, {2, 4, 11025},
|
||||||
{1, 4, 22050}, {2, 4, 22050}, {1, 4, 44100}, {2, 4, 44100},
|
{1, 4, 22050}, {2, 4, 22050}, {1, 4, 44100}, {2, 4, 44100},
|
||||||
|
@ -96,7 +96,7 @@ static Format ADPCM_Formats[] =
|
||||||
static DWORD ADPCM_GetFormatIndex(LPWAVEFORMATEX wfx)
|
static DWORD ADPCM_GetFormatIndex(LPWAVEFORMATEX wfx)
|
||||||
{
|
{
|
||||||
int i, hi;
|
int i, hi;
|
||||||
Format* fmts;
|
const Format* fmts;
|
||||||
|
|
||||||
switch (wfx->wFormatTag)
|
switch (wfx->wFormatTag)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue