mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-24 06:50:20 +01:00
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:
parent
fb54dabcd4
commit
221ebc16a6
@ -62,9 +62,12 @@ void decode_invert_psx(VGMSTREAMCHANNEL * stream, sample * outbuf, int channelsp
|
||||
uint8_t flag;
|
||||
|
||||
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;
|
||||
shift_factor = (read_8bit(stream->offset+framesin*16,stream->streamfile) ^ 0xff )& 0xf;
|
||||
predict_nr = ((head >> 4) & 0xf);
|
||||
shift_factor = (head & 0xf);
|
||||
flag = read_8bit(stream->offset+framesin*16+1,stream->streamfile);
|
||||
|
||||
first_sample = first_sample % 28;
|
||||
|
Loading…
Reference in New Issue
Block a user