wait what am I doing?

This commit is contained in:
tildearrow 2022-09-24 23:16:46 -05:00
parent 8d72d2f2d0
commit e75f23fa61
1 changed files with 2 additions and 2 deletions

View File

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