SNES: fix sample end

This commit is contained in:
tildearrow 2022-09-25 01:42:59 -05:00
parent d78b1cb79a
commit ffa0181704
2 changed files with 2 additions and 2 deletions

View file

@ -60,7 +60,7 @@ long brrEncode(short* buf, unsigned char* out, long len, long loopStart) {
if (s<0) s=-s;
while (range<12 && s>((8<<range)-1)) range++;
}
next[0]=(range<<4)|(filter<<2)|((i+16>len)?1:0);
next[0]=(range<<4)|(filter<<2)|((i+16>=len)?1:0);
switch (filter) {
case 0:
for (int j=0; j<16; j++) {