From 744ac256d688d5f45f05e493f94259f554d823b3 Mon Sep 17 00:00:00 2001 From: YamaArashi Date: Sat, 10 Sep 2016 15:53:47 -0700 Subject: delta encoding table --- src/m4a_tables.c | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) (limited to 'src') diff --git a/src/m4a_tables.c b/src/m4a_tables.c index f557fb073..c673f265c 100644 --- a/src/m4a_tables.c +++ b/src/m4a_tables.c @@ -43,24 +43,25 @@ void * const gMPlayJumpTableTemplate[] = SoundMainBTM, }; -const u8 gUnknown_0842F9F4[] = +// This is a table of deltas between sample values in compressed PCM data. +const s8 gDeltaEncodingTable[] = { - 0, - 1, - 4, - 9, - 16, - 25, - 36, - 49, - 192, - 207, - 220, - 231, - 240, - 247, - 252, - 255, + 0, + 1, + 4, + 9, + 16, + 25, + 36, + 49, + -64, + -49, + -36, + -25, + -16, + -9, + -4, + -1, }; const u8 gScaleTable[] = -- cgit v1.2.3