Refactoring

This commit is contained in:
elasota
2019-12-29 22:12:11 -05:00
parent dadb21a275
commit 9cf539eb52
29 changed files with 203 additions and 177 deletions

View File

@@ -261,7 +261,7 @@ PLError_t LoadMusicSounds (void)
return PLErrors::kOutOfMemory;
BlockMove((Ptr)(static_cast<Byte*>(*theSound) + 20L), theMusicData[i], soundDataSize);
ReleaseResource(theSound);
DisposeHandle(theSound);
}
return (theErr);
}
@@ -418,7 +418,7 @@ long MusicBytesNeeded (void)
if (theSound == nil)
{
SetResLoad(true);
return ((long)ResError());
return -1;
}
totalBytes += GetMaxResourceSize(theSound);
// ReleaseResource(theSound);