* Bring over changes from 2ship # Conflicts: # .github/workflows/apt-deps.txt # soh/CMakeLists.txt # soh/soh/resource/importer/AudioSampleFactory.h # soh/soh/resource/importer/AudioSequenceFactory.cpp # soh/soh/resource/importer/AudioSequenceFactory.h # soh/soh/resource/importer/AudioSoundFontFactory.h * Update xml format * Format and fix mixer for Windows * Fixes for new LUS * Good ole clang-format
24 lines
802 B
C++
24 lines
802 B
C++
#pragma once
|
|
|
|
#include "Resource.h"
|
|
#include "ResourceFactoryBinary.h"
|
|
#include "ResourceFactoryXML.h"
|
|
|
|
namespace SOH {
|
|
class ResourceFactoryBinaryAudioSampleV2 final : public Ship::ResourceFactoryBinary {
|
|
public:
|
|
std::shared_ptr<Ship::IResource> ReadResource(std::shared_ptr<Ship::File> file,
|
|
std::shared_ptr<Ship::ResourceInitData> initData) override;
|
|
};
|
|
|
|
class ResourceFactoryXMLAudioSampleV0 final : public Ship::ResourceFactoryXML {
|
|
public:
|
|
std::shared_ptr<Ship::IResource> ReadResource(std::shared_ptr<Ship::File> file,
|
|
std::shared_ptr<Ship::ResourceInitData> initData) override;
|
|
|
|
private:
|
|
static uint8_t CodecStrToInt(const char* str, const char* file);
|
|
};
|
|
|
|
} // namespace SOH
|