Struct-ize sample map variable
This commit is contained in:
parent
dff7c61b79
commit
a5959ae7b9
4 changed files with 40 additions and 24 deletions
|
|
@ -2445,8 +2445,8 @@ bool DivEngine::loadFTM(unsigned char* file, size_t len) {
|
|||
|
||||
const int dpcmNotes=(blockVersion>=2)?96:72;
|
||||
for (int j=0; j<dpcmNotes; j++) {
|
||||
ins->amiga.noteMap[j]=(short)((unsigned char)reader.readC())-1;
|
||||
ins->amiga.noteFreq[j]=(unsigned char)reader.readC();
|
||||
ins->amiga.noteMap[j].map=(short)((unsigned char)reader.readC())-1;
|
||||
ins->amiga.noteMap[j].freq=(unsigned char)reader.readC();
|
||||
if (blockVersion>=6) {
|
||||
reader.readC(); // DMC value
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue