SoundUnit: enough of bitfields

This commit is contained in:
tildearrow 2023-02-06 14:01:17 -05:00
parent 4874f2e7f3
commit 63d0eb46a9
3 changed files with 24 additions and 42 deletions

View file

@ -869,7 +869,7 @@ bool DivEngine::loadDMF(unsigned char* file, size_t len) {
sample->depth=DIV_SAMPLE_DEPTH_YMZ_ADPCM;
}
}
if (ds.version>=0x1a) {
if (ds.version>=0x1b) {
// what the hell man...
cutStart=reader.readI();
cutEnd=reader.readI();
@ -903,7 +903,7 @@ bool DivEngine::loadDMF(unsigned char* file, size_t len) {
reader.read(data,length*2);
}
if (ds.version>0x1a) {
if (ds.version>0x1b) {
if (cutStart!=0 || cutEnd!=length) {
// cut data
short* newData=new short[cutEnd-cutStart];