Skip to content

Commit

Permalink
Fixed audio processing
Browse files Browse the repository at this point in the history
  • Loading branch information
KiritoDv committed Jan 3, 2025
1 parent 14fcd63 commit a275fb2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/factories/naudio/v1/AudioTableFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ std::optional<std::shared_ptr<IParsedData>> AudioTableFactory::parse(std::vector
auto sd3 = reader.ReadInt16();
uint64_t crc = 0;

auto entry = AudioTableEntry { addr, size, medium, policy, sd1, sd2, sd3, crc };
entries.push_back(entry);
AudioContext::tables[type][addr] = entry;

switch (type) {
case AudioTableType::FONT_TABLE: {
YAML::Node font;
Expand Down Expand Up @@ -166,10 +170,6 @@ std::optional<std::shared_ptr<IParsedData>> AudioTableFactory::parse(std::vector
}
}
}

auto entry = AudioTableEntry { addr, size, medium, policy, sd1, sd2, sd3, crc };
entries.push_back(entry);
AudioContext::tables[type][addr] = entry;
}

auto table = std::make_shared<AudioTableData>(bmedium, offset, type, entries);
Expand Down

0 comments on commit a275fb2

Please sign in to comment.