wait what am I doing?

This commit is contained in:
tildearrow 2022-09-24 23:16:46 -05:00
parent 8d72d2f2d0
commit e75f23fa61

View file

@ -243,7 +243,7 @@ bool DivSample::save(const char* path) {
break;
}
default:
sf_write_raw(f,data16,length16);
sf_writef_short(f,data16,samples);
break;
}
@ -909,7 +909,7 @@ void DivSample::render() {
data8[i]=data16[i]>>8;
}
}
if (depth!=DIV_SAMPLE_DEPTH_VOX) { // BRR
if (depth!=DIV_SAMPLE_DEPTH_BRR) { // BRR
if (!initInternal(DIV_SAMPLE_DEPTH_BRR,samples)) return;
// TODO: loop point
brrEncode(data16,dataBRR,samples,0);