Skip to content

Commit

Permalink
fix it again
Browse files Browse the repository at this point in the history
  • Loading branch information
louist103 committed May 1, 2024
1 parent 870387e commit e34eadf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ZAPD/ZAudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ void ZAudio::ParseSoundFont(std::vector<uint8_t> codeData, std::vector<uint8_t>
int currentOffset = BitConverter::ToInt32BE(codeData, ptr) + ptr;
for (int i = 0; i < numDrums; i++)
{
DrumEntry drum;
DrumEntry drum = {0};

int samplePtr = BitConverter::ToInt32BE(codeData, currentOffset);

Expand All @@ -245,8 +245,8 @@ void ZAudio::ParseSoundFont(std::vector<uint8_t> codeData, std::vector<uint8_t>
drum.loaded = codeData[samplePtr + 2];
drum.tuning = BitConverter::ToFloatBE(codeData, samplePtr + 8);
drum.env = ParseEnvelopeData(codeData, audioTable, BitConverter::ToInt32BE(codeData, samplePtr + 12) + ptr, ptr);
entry.drums.push_back(drum);
}
entry.drums.push_back(drum);


currentOffset += 4;
Expand Down

0 comments on commit e34eadf

Please sign in to comment.