mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-27 06:53:01 +00:00
debug dmf not loading again
This commit is contained in:
parent
e755f1bbd0
commit
8375256ff7
1 changed files with 4 additions and 2 deletions
|
@ -928,15 +928,17 @@ bool DivEngine::loadDMF(unsigned char* file, size_t len) {
|
||||||
data=newData;
|
data=newData;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
logV("length: %d. scaledLen: %d.",length,scaledLen);
|
||||||
|
|
||||||
if (ds.version>=0x1b) {
|
if (ds.version>=0x1b) {
|
||||||
if (cutStart<0 || cutStart>scaledLen) {
|
if (cutStart<0 || cutStart>scaledLen) {
|
||||||
logE("cutStart is out of range! (%d)",cutStart);
|
logE("cutStart is out of range! (%d, scaledLen: %d)",cutStart,scaledLen);
|
||||||
lastError="file is corrupt or unreadable at samples";
|
lastError="file is corrupt or unreadable at samples";
|
||||||
delete[] file;
|
delete[] file;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (cutEnd<0 || cutEnd>scaledLen) {
|
if (cutEnd<0 || cutEnd>scaledLen) {
|
||||||
logE("cutEnd is out of range! (%d)",cutEnd);
|
logE("cutEnd is out of range! (%d, scaledLen: %d)",cutEnd,scaledLen);
|
||||||
lastError="file is corrupt or unreadable at samples";
|
lastError="file is corrupt or unreadable at samples";
|
||||||
delete[] file;
|
delete[] file;
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue