1
0
mirror of https://github.com/ScrelliCopter/VGM-Tools synced 2025-02-21 04:09:25 +11:00

neotools: implement adpcma extraction in neoadpcmextract

This commit is contained in:
2023-12-29 00:53:59 +11:00
parent ae14868953
commit 802bdef961
5 changed files with 85 additions and 36 deletions

View File

@@ -36,7 +36,7 @@ static const int decodeTableA1[16] =
-1 * 16, -1 * 16, -1 * 16, -1 * 16, 2 * 16, 5 * 16, 7 * 16, 9 * 16
};
void adpcmADecode(AdpcmADecoderState* restrict decoder, char* restrict in, short* restrict out, int len)
void adpcmADecode(AdpcmADecoderState* decoder, const char* restrict in, short* restrict out, int len)
{
for (int i = 0; i < len * 2; ++i)
{