2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-13 20:06:10 +00:00

RE COutput/InputStream and friends and migrate over

This branch is probably still horribly broken, but it's a good first step to migrating away from having hecl embedded in the runtime
This commit is contained in:
2022-02-17 23:37:54 -08:00
parent c679c2e0f8
commit dad7249927
172 changed files with 3629 additions and 2780 deletions

View File

@@ -1,4 +1,5 @@
#include "Runtime/Audio/CSfxManager.hpp"
#include "Runtime/CInputStream.hpp"
#include "Runtime/CSimplePool.hpp"
@@ -19,10 +20,10 @@ static amuse::EffectDelay* s_DelayState = nullptr;
CFactoryFnReturn FAudioTranslationTableFactory(const SObjectTag& tag, CInputStream& in, const CVParamTransfer& vparms,
CObjectReference* selfRef) {
std::unique_ptr<std::vector<u16>> obj = std::make_unique<std::vector<u16>>();
u32 count = in.readUint32Big();
u32 count = in.ReadLong();
obj->reserve(count);
for (u32 i = 0; i < count; ++i)
obj->push_back(in.readUint16Big());
obj->push_back(in.ReadShort());
return TToken<std::vector<u16>>::GetIObjObjectFor(std::move(obj));
}