Fixed audio processing

This commit is contained in:
KiritoDv
2025-01-16 01:17:34 -06:00
parent 7da8ae8e25
commit b96910b18f
2 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -1507,9 +1507,9 @@ std::optional<YAML::Node> Companion::AddAsset(YAML::Node asset) {
auto found = std::get<1>(decl.value());
if(GetSafeNode<std::string>(found, "type") != type) {
SPDLOG_ERROR("Asset clash detected {} vs {} at 0x{:X}", type, GetSafeNode<std::string>(found, "type"), offset);
} else {
return found;
}
return found;
}
auto rom = this->GetRomData();
+4
View File
@@ -46,6 +46,10 @@ std::optional<std::shared_ptr<IParsedData>> ADPCMBookFactory::parse(std::vector<
book->numPredictors = reader.ReadInt32();
size_t length = 8 * book->order * book->numPredictors;
if(length > 0x40){
return std::nullopt;
}
for(size_t i = 0; i < length; i++){
book->book.push_back(reader.ReadInt16());
}