From 9f296bec239c698c3bfceaccf15c4b99ba646610 Mon Sep 17 00:00:00 2001 From: Louis <35883445+louist103@users.noreply.github.com> Date: Wed, 25 Sep 2024 19:17:12 -0400 Subject: [PATCH] forgot to re-add these --- ZAPD/ZAudio.cpp | 2 +- ZAPD/ZAudio.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ZAPD/ZAudio.cpp b/ZAPD/ZAudio.cpp index 40efcbb..03c1efa 100644 --- a/ZAPD/ZAudio.cpp +++ b/ZAPD/ZAudio.cpp @@ -125,7 +125,7 @@ SampleEntry* ZAudio::ParseSampleEntry(const std::vector& 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(); diff --git a/ZAPD/ZAudio.h b/ZAPD/ZAudio.h index d9504a8..0c6c087 100644 --- a/ZAPD/ZAudio.h +++ b/ZAPD/ZAudio.h @@ -97,7 +97,7 @@ class ZAudio : public ZResource std::vector seqNames; std::map soundFontNames; - // First Key = Bank ID, Sec Key = Sample Data Offset, Third Key = LoopDataOffset, + // First Key = Bank ID, Sec Key = Sample Data Offset. std::map> sampleOffsets; ZAudio(ZFile* nParent);