Skip to content

Commit

Permalink
forgot to re-add these
Browse files Browse the repository at this point in the history
  • Loading branch information
louist103 committed Sep 25, 2024
1 parent fcc0ac6 commit 9f296be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ZAPD/ZAudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ SampleEntry* ZAudio::ParseSampleEntry(const std::vector<uint8_t>& audioBank,
int loopOffset = BitConverter::ToInt32BE(audioBank, sampleOffset + 8) + baseOffset;
int bookOffset = BitConverter::ToInt32BE(audioBank, sampleOffset + 12) + baseOffset;

if (samples.find((uint64_t)sampleDataOffset) == samples.end())
if (samples.find(sampleDataOffset) == samples.end())
{
SampleEntry* sample = new SampleEntry();

Expand Down
2 changes: 1 addition & 1 deletion ZAPD/ZAudio.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class ZAudio : public ZResource
std::vector<std::string> seqNames;
std::map<uint32_t, std::string> soundFontNames;

// First Key = Bank ID, Sec Key = Sample Data Offset, Third Key = LoopDataOffset,
// First Key = Bank ID, Sec Key = Sample Data Offset.
std::map<uint32_t, std::map<uint32_t, std::string>> sampleOffsets;

ZAudio(ZFile* nParent);
Expand Down

0 comments on commit 9f296be

Please sign in to comment.