From 07f9be39a62b93fa3af07c2fc02dcd25edd2c00b Mon Sep 17 00:00:00 2001 From: Ladislav Zezula Date: Sun, 15 May 2022 20:13:36 +0200 Subject: Code refined --- src/adpcm/adpcm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/adpcm/adpcm.cpp') diff --git a/src/adpcm/adpcm.cpp b/src/adpcm/adpcm.cpp index 60e6738..1725008 100644 --- a/src/adpcm/adpcm.cpp +++ b/src/adpcm/adpcm.cpp @@ -387,7 +387,7 @@ int DecompressADPCM(void * pvOutBuffer, int cbOutBuffer, void * pvInBuffer, int typedef struct _ADPCM_DATA { - unsigned int * pValues; + const unsigned int * pValues; int BitCount; int field_8; int field_C; @@ -404,7 +404,7 @@ static const unsigned int adpcm_values_6[] = 0x46, 0x53, 0x60, 0x6D, 0x7A, 0x86, 0x93, 0xA0, 0xAD, 0xBA, 0xC6, 0xD3, 0xE0, 0xED, 0xFA, 0x106 }; -static unsigned int * InitAdpcmData(PADPCM_DATA pData, unsigned char BitCount) +static const unsigned int * InitAdpcmData(PADPCM_DATA pData, unsigned char BitCount) { switch(BitCount) { -- cgit v1.2.3