audio::reset_channel + minor refactor

This commit is contained in:
MihailRis
2024-03-05 00:19:46 +03:00
parent 9fbf46169f
commit 0ab39fa06f
9 changed files with 62 additions and 40 deletions
+10 -2
View File
@@ -20,6 +20,14 @@
namespace fs = std::filesystem;
static bool animation(
Assets* assets,
const ResPaths* paths,
const std::string directory,
const std::string name,
Atlas* dstAtlas
);
bool assetload::texture(
AssetsLoader&,
Assets* assets,
@@ -102,7 +110,7 @@ bool assetload::atlas(
Atlas* atlas = builder.build(2);
assets->store(atlas, name);
for (const auto& file : builder.getNames()) {
assetload::animation(assets, paths, "textures", file, atlas);
animation(assets, paths, "textures", file, atlas);
}
return true;
}
@@ -172,7 +180,7 @@ bool assetload::sound(
return true;
}
bool assetload::animation(
static bool animation(
Assets* assets,
const ResPaths* paths,
const std::string directory,