mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-11-15 22:19:07 +00:00
Merge branch 'master' of /home/fg/fgone/Aquaria_fg_clean
This commit is contained in:
commit
bfe7742965
1 changed files with 8 additions and 15 deletions
|
@ -1494,14 +1494,8 @@ void loadCacheSoundsCallback (const std::string &filename, intptr_t param)
|
||||||
}
|
}
|
||||||
if (fileType==".ogg")
|
if (fileType==".ogg")
|
||||||
{
|
{
|
||||||
|
debugLog("trying to load sound " + filename);
|
||||||
std::string f = filename;
|
sm->loadSoundIntoBank(filename, "", "");
|
||||||
stringToLower(f);
|
|
||||||
|
|
||||||
debugLog("trying to load sound " + f);
|
|
||||||
|
|
||||||
sm->loadSoundIntoBank(f, "", "");
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1524,18 +1518,15 @@ Buffer SoundManager::loadSoundIntoBank(const std::string &filename, const std::s
|
||||||
debugLog(filename);
|
debugLog(filename);
|
||||||
if (slt == SFXLOAD_LOCAL && !audioPath2.empty())
|
if (slt == SFXLOAD_LOCAL && !audioPath2.empty())
|
||||||
{
|
{
|
||||||
f = audioPath2 + filename + format;
|
f = core->adjustFilenameCase(audioPath2 + filename + format);
|
||||||
stringToLower(f);
|
|
||||||
if (!exists(f))
|
if (!exists(f))
|
||||||
{
|
{
|
||||||
f = path + filename + format;
|
f = core->adjustFilenameCase(path + filename + format);
|
||||||
stringToLower(f);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
f = path + filename + format;
|
f = core->adjustFilenameCase(path + filename + format);
|
||||||
stringToLower(f);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool loop = false;
|
bool loop = false;
|
||||||
|
@ -1557,6 +1548,8 @@ Buffer SoundManager::loadSoundIntoBank(const std::string &filename, const std::s
|
||||||
return Buffer();
|
return Buffer();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stringToLower(name);
|
||||||
|
|
||||||
#ifdef BBGE_BUILD_FMODEX
|
#ifdef BBGE_BUILD_FMODEX
|
||||||
|
|
||||||
FMOD::Sound * sound = SoundCore::soundMap[name];
|
FMOD::Sound * sound = SoundCore::soundMap[name];
|
||||||
|
|
Loading…
Reference in a new issue