Code formatting

This commit is contained in:
techmetx11 2024-04-11 16:05:54 +00:00
parent 772a7a4144
commit b18c29a1da
No known key found for this signature in database
GPG key ID: 20E0C88A0E7E5AF2

View file

@ -136,7 +136,7 @@ public:
void skip(size_t l) {
// quick and dirty
while (l--) {
logD("skipping l %d", l);
logD("skipping l %d",l);
readC();
}
}
@ -336,7 +336,7 @@ bool DivEngine::loadTFM(unsigned char* file, size_t len) {
// notes
reader.read(patDataBuf, 256);
logD("parsing notes of pattern %d channel %d", i, j);
logD("parsing notes of pattern %d channel %d",i,j);
for (int k=0; k<256; k++) {
if (patDataBuf[k]==0) continue;
else if (patDataBuf[k]==1) {
@ -360,18 +360,18 @@ bool DivEngine::loadTFM(unsigned char* file, size_t len) {
pat->data[patLens[i]][5]=0x00;
}
// volume
reader.read(patDataBuf, 256);
reader.read(patDataBuf,256);
logD("parsing volumes of pattern %d channel %d", i, j);
logD("parsing volumes of pattern %d channel %d",i,j);
for (int k=0; k<256; k++) {
if (patDataBuf[k]==0) continue;
else pat->data[k][3]=patDataBuf[k]*4;
}
// instrument
reader.read(patDataBuf, 256);
reader.read(patDataBuf,256);
logD("parsing instruments of pattern %d channel %d", i, j);
logD("parsing instruments of pattern %d channel %d",i,j);
for (int k=0; k<256; k++) {
if (patDataBuf[k]==0) continue;
else {
@ -379,9 +379,9 @@ bool DivEngine::loadTFM(unsigned char* file, size_t len) {
}
}
logD("ignoring unused data of pattern %d channel %d", i, j);
reader.read(patDataBuf, 256);
reader.read(patDataBuf, 256);
logD("ignoring unused data of pattern %d channel %d",i,j);
reader.read(patDataBuf,256);
reader.read(patDataBuf,256);
reader.skip(1536);
}