diff options
| author | KiritoDv <kiritodev01@gmail.com> | 2024-11-29 22:11:39 -0600 |
|---|---|---|
| committer | KiritoDv <kiritodev01@gmail.com> | 2024-11-29 22:11:39 -0600 |
| commit | e466f58b2cff026c37201154cc74096b1f7ac0ce (patch) | |
| tree | bd5f9e1021a15551a4a73f35340516e84337f08d /src/Companion.cpp | |
| parent | 1d485d7695699dbfe28407a62c312b6c3732d4a2 (diff) | |
Fixed aiff sample extraction and sample name
Diffstat (limited to 'src/Companion.cpp')
| -rw-r--r-- | src/Companion.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Companion.cpp b/src/Companion.cpp index a86e64a..0589c84 100644 --- a/src/Companion.cpp +++ b/src/Companion.cpp @@ -573,7 +573,7 @@ void Companion::ProcessFile(YAML::Node root) { if(assetNode["type"]){ const auto type = GetSafeNode<std::string>(assetNode, "type"); - if(type == "SAMPLE"){ + if(type == "NAUDIO:V0:SAMPLE"){ AudioManager::Instance->bind_sample(assetNode, output); } } @@ -597,10 +597,9 @@ void Companion::ProcessFile(YAML::Node root) { auto output = (this->gCurrentDirectory / entryName).string(); std::replace(output.begin(), output.end(), '\\', '/'); - if(node["type"]){ const auto type = GetSafeNode<std::string>(node, "type"); - if(type == "SAMPLE"){ + if(type == "NAUDIO:V0:SAMPLE"){ AudioManager::Instance->bind_sample(node, output); } } |
