void loadCustomSounds(const string& mPackName, const string& mPath) { for(auto filePath : getScan<Mode::Single, Type::File, Pick::ByExt>(mPath + "Sounds/", ".ogg")) { string fileName{getNameFromPath(filePath, mPath + "Sounds/", "")}; assetManager.loadSound(mPackName + "_" + fileName, filePath); assetManager.getSound(mPackName + "_" + fileName).setVolume(getSoundVolume()); } }
Sound* getSoundPtr(const string& mId) { return assetManager.hasSound(mId) ? &assetManager.getSound(mId) : nullptr; }