MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / audio

Method audio

source/base/StarAssets.cpp:551–556  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

549}
550
551AudioConstPtr Assets::audio(String const& path) const {
552 auto components = AssetPath::split(path);
553 validatePath(components, false, false);
554
555 return as<AudioData>(getAsset(AssetId{AssetType::Audio, std::move(components)}))->audio;
556}
557
558void Assets::queueAudios(StringList const& paths) const {
559 queueAssets(paths.transformed([](String const& path) {

Callers 15

updateMethod · 0.80
soundsFromDefinitionFunction · 0.80
renderMethod · 0.80
initMethod · 0.80
processActionMethod · 0.80
renderMethod · 0.80
playbackMethod · 0.80
pullSoundsMethod · 0.80
renderMethod · 0.80
destroyMethod · 0.80
renderSoundsMethod · 0.80
updateMethod · 0.80

Calls 1

validatePathFunction · 0.85

Tested by

no test coverage detected