mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-16 17:45:10 +00:00
fix BRR loading corruption
This commit is contained in:
parent
a0dc9de262
commit
ef04090a47
2 changed files with 3 additions and 3 deletions
|
@ -111,10 +111,10 @@ long brrEncode(short* buf, unsigned char* out, long len, long loopStart) {
|
||||||
next+=(last1*15)/16; \
|
next+=(last1*15)/16; \
|
||||||
break; \
|
break; \
|
||||||
case 8: \
|
case 8: \
|
||||||
next+=((last1*61)/32)-((last2*15)/16); \
|
next+=((last2*61)/32)-((last1*15)/16); \
|
||||||
break; \
|
break; \
|
||||||
case 12: \
|
case 12: \
|
||||||
next+=((last1*115)/64)-((last2*13)/16); \
|
next+=((last2*115)/64)-((last1*13)/16); \
|
||||||
break; \
|
break; \
|
||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
|
|
|
@ -852,7 +852,7 @@ void DivSample::render() {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case DIV_SAMPLE_DEPTH_BRR: // BRR
|
case DIV_SAMPLE_DEPTH_BRR: // BRR
|
||||||
brrDecode(dataBRR,data16,samples);
|
brrDecode(dataBRR,data16,lengthBRR);
|
||||||
break;
|
break;
|
||||||
case DIV_SAMPLE_DEPTH_VOX: // VOX
|
case DIV_SAMPLE_DEPTH_VOX: // VOX
|
||||||
oki_decode(dataVOX,data16,samples);
|
oki_decode(dataVOX,data16,samples);
|
||||||
|
|
Loading…
Reference in a new issue