mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
Refactoring
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user