wait what am I doing?
This commit is contained in:
parent
8d72d2f2d0
commit
e75f23fa61
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue