Torch
Loading...
Searching...
No Matches
LoopFactory.h
1#pragma once
2
3#include <factories/BaseFactory.h>
4#include "AudioContext.h"
5
6class ADPCMLoopData : public IParsedData {
7public:
8 uint32_t start;
9 uint32_t end;
10 uint32_t count;
11 int16_t predictorState[16];
12};
13
15 ExportResult Export(std::ostream& write, std::shared_ptr<IParsedData> data, std::string& entryName, YAML::Node& node, std::string* replacement) override;
16};
17
19 ExportResult Export(std::ostream& write, std::shared_ptr<IParsedData> data, std::string& entryName, YAML::Node& node, std::string* replacement) override;
20};
21
23 ExportResult Export(std::ostream& write, std::shared_ptr<IParsedData> data, std::string& entryName, YAML::Node& node, std::string* replacement) override;
24};
25
27public:
28 std::optional<std::shared_ptr<IParsedData>> parse(std::vector<uint8_t>& buffer, YAML::Node& data) override;
29 inline std::unordered_map<ExportType, std::shared_ptr<BaseExporter>> GetExporters() override {
30 return {
31 REGISTER(Header, ADPCMLoopHeaderExporter)
32 REGISTER(Binary, ADPCMLoopBinaryExporter)
33 REGISTER(Code, ADPCMLoopCodeExporter)
34 };
35 }
36
37 bool HasModdedDependencies() override { return true; }
38};
Definition LoopFactory.h:18
Definition LoopFactory.h:22
Definition LoopFactory.h:6
Definition LoopFactory.h:26
Definition LoopFactory.h:14
Definition BaseFactory.h:88
Definition BaseFactory.h:94
Definition BaseFactory.h:80