summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrobojumper <robojumper@gmail.com>2025-05-25 22:57:30 +0200
committerrobojumper <robojumper@gmail.com>2025-05-25 22:57:30 +0200
commit0635ce50fce4e5407945859bc41888cc8fba9623 (patch)
treedf4163ad8ae44d90b88ccbaa5272547773b61a6a /src
parent306f620a9f8d5a54bb4d2a54e06e5aec1d6403e7 (diff)
snd_PlayerHeap OK
Diffstat (limited to 'src')
-rw-r--r--src/nw4r/snd/snd_MmlParser.cpp2
-rw-r--r--src/nw4r/snd/snd_NandSoundArchive.cpp6
2 files changed, 1 insertions, 7 deletions
diff --git a/src/nw4r/snd/snd_MmlParser.cpp b/src/nw4r/snd/snd_MmlParser.cpp
index d481920f..56fe73b2 100644
--- a/src/nw4r/snd/snd_MmlParser.cpp
+++ b/src/nw4r/snd/snd_MmlParser.cpp
@@ -159,7 +159,7 @@ MmlSeqTrack::ParseResult MmlParser::Parse(MmlSeqTrack *track,
s32 commandArg1 = 0;
s32 commandArg2 = 0;
- switch (static_cast<int>(cmd & MML_CMD_SET_MASK))
+ switch (cmd & MML_CMD_SET_MASK)
{
case 0x80:
{
diff --git a/src/nw4r/snd/snd_NandSoundArchive.cpp b/src/nw4r/snd/snd_NandSoundArchive.cpp
index e37db9d9..2e104f72 100644
--- a/src/nw4r/snd/snd_NandSoundArchive.cpp
+++ b/src/nw4r/snd/snd_NandSoundArchive.cpp
@@ -193,9 +193,6 @@ NandSoundArchive::NandFileStream::NandFileStream(const NANDFileInfo* pFileInfo,
mSize(size) {
if (IsAvailable()) {
- if (mSize == 0) {
- mSize = ut::NandFileStream::GetSize();
- }
ut::NandFileStream::Seek(mOffset, SEEKORG_BEG);
}
@@ -208,9 +205,6 @@ NandSoundArchive::NandFileStream::NandFileStream(const char* pPath, u32 offset,
mSize(size) {
if (IsAvailable()) {
- if (mSize == 0) {
- mSize = ut::NandFileStream::GetSize();
- }
ut::NandFileStream::Seek(mOffset, SEEKORG_BEG);
}