diff --git a/src/engine/fileOps.cpp b/src/engine/fileOps.cpp index 6b968b5c2..1bf73bcce 100644 --- a/src/engine/fileOps.cpp +++ b/src/engine/fileOps.cpp @@ -560,9 +560,12 @@ bool DivEngine::loadDMF(unsigned char* file, size_t len) { for (int i=0; ilen=(unsigned char)reader.readI(); - if (ds.system[0]==DIV_SYSTEM_GB || ds.system[0]==DIV_SYSTEM_NES_FDS) { + if (ds.system[0]==DIV_SYSTEM_GB) { wave->max=15; } + if (ds.system[0]==DIV_SYSTEM_NES_FDS) { + wave->max=63; + } if (wave->len>65) { logE("invalid wave length %d. are we doing something wrong?\n",wave->len); lastError="file is corrupt or unreadable at wavetables";