reformulated but still not great invert-psx

git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@259 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
halleyscometsw 2008-06-26 02:12:40 +00:00
parent fb54dabcd4
commit 221ebc16a6

View File

@ -62,9 +62,12 @@ void decode_invert_psx(VGMSTREAMCHANNEL * stream, sample * outbuf, int channelsp
uint8_t flag; uint8_t flag;
int framesin = first_sample/28; int framesin = first_sample/28;
//int head = 0xff - read_8bit(stream->offset+framesin*16,stream->streamfile);
int head = 0xff ^ read_8bit(stream->offset+framesin*16,stream->streamfile);
//int head = read_8bit(stream->offset+framesin*16,stream->streamfile);
predict_nr = (read_8bit(stream->offset+framesin*16,stream->streamfile) ^ 0xff) >> 4; predict_nr = ((head >> 4) & 0xf);
shift_factor = (read_8bit(stream->offset+framesin*16,stream->streamfile) ^ 0xff )& 0xf; shift_factor = (head & 0xf);
flag = read_8bit(stream->offset+framesin*16+1,stream->streamfile); flag = read_8bit(stream->offset+framesin*16+1,stream->streamfile);
first_sample = first_sample % 28; first_sample = first_sample % 28;