mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 12:09:36 +00:00
Add support for unpackaged resources to speed up loads on Android, i.e. so we don't have to decompress entire GPAs to load a single resource.
This commit is contained in:
@@ -367,27 +367,6 @@ void KillSound (void)
|
||||
DumpBufferSounds();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------- SoundBytesNeeded
|
||||
|
||||
long SoundBytesNeeded (void)
|
||||
{
|
||||
long totalBytes;
|
||||
short i;
|
||||
|
||||
totalBytes = 0L;
|
||||
for (i = 0; i < kMaxSounds - 1; i++)
|
||||
{
|
||||
size_t resSize = 0;
|
||||
if (!PortabilityLayer::ResourceManager::GetInstance()->GetAppResourceArchive()->GetResourceSize('snd ', i + kBaseBufferSoundID, resSize))
|
||||
return -1;
|
||||
|
||||
totalBytes += static_cast<long>(resSize);
|
||||
// ReleaseResource(theSound);
|
||||
}
|
||||
|
||||
return totalBytes;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------- TellHerNoSounds
|
||||
|
||||
void TellHerNoSounds (void)
|
||||
|
||||
Reference in New Issue
Block a user