2018-10-06 20:42:33 -07:00
|
|
|
#pragma once
|
2016-07-24 15:51:15 -07:00
|
|
|
|
2019-09-27 19:53:03 -07:00
|
|
|
#include <memory>
|
|
|
|
#include <string>
|
|
|
|
|
2022-02-26 14:52:05 -08:00
|
|
|
#include "Runtime/Factory/CFactoryMgr.hpp"
|
2019-09-27 19:53:03 -07:00
|
|
|
#include "Runtime/CToken.hpp"
|
2022-02-19 05:04:45 -08:00
|
|
|
#include "Runtime/Streams/IOStreams.hpp"
|
2022-02-26 14:52:05 -08:00
|
|
|
#include "Runtime/Factory/IObj.hpp"
|
2019-09-27 19:53:03 -07:00
|
|
|
#include "Runtime/RetroTypes.hpp"
|
|
|
|
|
|
|
|
#include <amuse/AudioGroupData.hpp>
|
2016-07-24 15:51:15 -07:00
|
|
|
|
2021-04-10 01:42:06 -07:00
|
|
|
namespace metaforce {
|
2018-12-07 21:30:43 -08:00
|
|
|
|
|
|
|
class CAudioGroupSet {
|
|
|
|
std::unique_ptr<u8[]> m_buffer;
|
|
|
|
std::string x10_baseName;
|
|
|
|
std::string x20_name;
|
|
|
|
amuse::AudioGroupData m_data;
|
|
|
|
amuse::AudioGroupData LoadData();
|
2016-07-24 15:51:15 -07:00
|
|
|
|
|
|
|
public:
|
2020-03-30 20:52:22 -07:00
|
|
|
explicit CAudioGroupSet(std::unique_ptr<u8[]>&& in);
|
2018-12-07 21:30:43 -08:00
|
|
|
const amuse::AudioGroupData& GetAudioGroupData() const { return m_data; }
|
|
|
|
std::string_view GetName() const { return x20_name; }
|
2016-07-24 15:51:15 -07:00
|
|
|
};
|
|
|
|
|
2021-04-10 01:42:06 -07:00
|
|
|
CFactoryFnReturn FAudioGroupSetDataFactory(const metaforce::SObjectTag& tag, std::unique_ptr<u8[]>&& in, u32 len,
|
|
|
|
const metaforce::CVParamTransfer& vparms, CObjectReference* selfRef);
|
2016-07-24 15:51:15 -07:00
|
|
|
|
2021-04-10 01:42:06 -07:00
|
|
|
} // namespace metaforce
|