MIDIToSong bug fix

This commit is contained in:
Jack Andersen 2017-11-26 19:04:13 -10:00
parent cab7402104
commit ebe6f18898
1 changed files with 1 additions and 0 deletions

View File

@ -1286,6 +1286,7 @@ std::vector<uint8_t> SongConverter::MIDIToSong(const std::vector<uint8_t>& data,
curRegionOff += 12 + region.eventBuf.size() + region.pitchBuf.size() + region.modBuf.size();
int paddedRegOff = ((curRegionOff + 3) & ~3);
region.padding = paddedRegOff - curRegionOff;
curRegionOff = paddedRegOff;
regions.push_back(std::move(region));
}