Page 1 of 1
P6* - The Player
Posted: Mon Mar 24, 2003 4:11 pm
by asle
Hey XtC,
Do you have a similar description on how to depack P60a and P61a samples ?. Would be Very cool

. err .. C example only as that's the only thing I'm able to read

.
Thanks,
Regards,
Sylvain
Posted: Mon Mar 24, 2003 4:23 pm
by XtC
I think it's Kyz(er) who you should be asking.
I wouldn't know how to decompress in an oxygen chamber, never mind unpack a delta compressed sample file!

Posted: Mon Mar 24, 2003 5:16 pm
by asle
ah .. hum, well, Kyz ?
Sylvain
Posted: Mon Mar 24, 2003 5:49 pm
by kyz
asle wrote:ah .. hum, well, Kyz ?
Sylvain
P50 / P60 / P61's delta-4 coding is as follows:
Code: Select all
BYTE *src, *dest, *src_end, samp;
BYTE table[16] = {0,1,2,4,8,16,32,64,128,-64,-32,-16,-8,-4,-2,-1}
for (samp = 0; src < src_end; src++) {
samp -= table[(*src >> 4) & 0x0F]; *dest++ = samp;
samp -= table[ *src & 0x0F]; *dest++ = samp;
}