mirror of
https://github.com/izzy2lost/Torch.git
synced 2026-07-06 00:18:35 -07:00
Fixed aiff sample extraction and sample name
This commit is contained in:
+2
-3
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user