MCPcopy Create free account
hub / github.com/GDRETools/gdsdecomp / ParseAudioSource

Function ParseAudioSource

external/tinygltf/tiny_gltf.h:5953–5968  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5951}
5952
5953static bool ParseAudioSource(
5954 AudioSource *source, std::string *err, const detail::json &o,
5955 bool store_original_json_for_extras_and_extensions) {
5956 ParseStringProperty(&source->name, err, o, "name", false);
5957 ParseStringProperty(&source->uri, err, o, "uri", false);
5958
5959 if (source->uri.empty()) {
5960 ParseIntegerProperty(&source->bufferView, err, o, "bufferView", true);
5961 ParseStringProperty(&source->mimeType, err, o, "mimeType", true);
5962 }
5963
5964 ParseExtrasAndExtensions(source, err, o,
5965 store_original_json_for_extras_and_extensions);
5966
5967 return true;
5968}
5969
5970namespace detail {
5971

Callers 1

LoadFromStringMethod · 0.85

Calls 4

ParseStringPropertyFunction · 0.85
ParseIntegerPropertyFunction · 0.85
ParseExtrasAndExtensionsFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected