Skip to content

Commit 68fde5c

Browse files
committed
don't force mono to false, fixing some brsar songs that used to crash
1 parent 85db762 commit 68fde5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/DLSFile.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ void DLSWave::WriteSample(vector<uint8_t> &buf, bool mono) {
487487
}
488488

489489
void DLSWave::Write(vector<uint8_t> &buf, bool mono) {
490-
mono = false;
490+
//mono = false;
491491
uint32_t theDWORD;
492492
uint16_t numChannels = mono ? 1 : wChannels;
493493

@@ -513,4 +513,4 @@ void DLSWave::Write(vector<uint8_t> &buf, bool mono) {
513513
PushTypeOnVectBE<uint32_t>(buf, 0x494E414D); //"INAM"
514514
PushTypeOnVect<uint32_t>(buf, (uint32_t) name.size()); //size
515515
PushBackStringOnVector(buf, name);
516-
}
516+
}

0 commit comments

Comments
 (0)