mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
audio: channels
This commit is contained in:
parent
5657457edb
commit
75ee269db3
8 changed files with 259 additions and 73 deletions
|
|
@ -162,7 +162,7 @@ bool assetload::sound(
|
|||
std::shared_ptr<AssetCfg> config
|
||||
) {
|
||||
auto cfg = dynamic_cast<SoundCfg*>(config.get());
|
||||
auto sound = audio::loadSound(paths->find(file), cfg->keepPCM);
|
||||
auto sound = audio::load_sound(paths->find(file), cfg->keepPCM);
|
||||
if (sound == nullptr) {
|
||||
std::cerr << "failed to load sound '" << name << "' from '";
|
||||
std::cerr << file << "'" << std::endl;
|
||||
|
|
@ -172,11 +172,13 @@ bool assetload::sound(
|
|||
return true;
|
||||
}
|
||||
|
||||
bool assetload::animation(Assets* assets,
|
||||
const ResPaths* paths,
|
||||
const std::string directory,
|
||||
const std::string name,
|
||||
Atlas* dstAtlas) {
|
||||
bool assetload::animation(
|
||||
Assets* assets,
|
||||
const ResPaths* paths,
|
||||
const std::string directory,
|
||||
const std::string name,
|
||||
Atlas* dstAtlas
|
||||
) {
|
||||
std::string animsDir = directory + "/animations";
|
||||
std::string blocksDir = directory + "/blocks";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue