Module: wine Branch: master Commit: 4bd4e5d39f1b274b8b08b98cc9f339910fcf7419 URL: http://source.winehq.org/git/wine.git/?a=commit;h=4bd4e5d39f1b274b8b08b98cc9...
Author: Andrew Talbot Andrew.Talbot@talbotville.com Date: Sat Feb 17 19:22:23 2007 +0000
msadp32.acm: Constify some variables.
---
dlls/msadp32.acm/msadp32.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/msadp32.acm/msadp32.c b/dlls/msadp32.acm/msadp32.c index 3849c04..0336582 100644 --- a/dlls/msadp32.acm/msadp32.c +++ b/dlls/msadp32.acm/msadp32.c @@ -69,7 +69,7 @@ typedef struct int rate; } Format;
-static Format PCM_Formats[] = +static const Format PCM_Formats[] = { {1, 8, 8000}, {2, 8, 8000}, {1, 16, 8000}, {2, 16, 8000}, {1, 8, 11025}, {2, 8, 11025}, {1, 16, 11025}, {2, 16, 11025}, @@ -77,7 +77,7 @@ static Format PCM_Formats[] = {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, 22050}, {2, 4, 22050}, {1, 4, 44100}, {2, 4, 44100}, @@ -103,8 +103,8 @@ static ADPCMCOEFSET MSADPCM_CoeffSet[] = */ static DWORD ADPCM_GetFormatIndex(WAVEFORMATEX* wfx) { - int i, hi; - Format* fmts; + int i, hi; + const Format* fmts;
switch (wfx->wFormatTag) {