Initial pure C++ implementation
This commit is contained in:
commit
42d6da6302
110 files changed
+37510
No files matched your search
@@ -0,0 +1,31 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "eac3joc_core.h"
|
||||
#include "foundation/status.h"
|
||||
#include "oamd/oamd_parser.h"
|
||||
#include "speaker/speaker_layout_lookup.h"
|
||||
|
||||
namespace joc::speaker {
|
||||
|
||||
struct SpeakerStep {
|
||||
ejoc_speaker_renderer_handle handle = nullptr;
|
||||
LayoutInfo layout{};
|
||||
oamd::OamdState state;
|
||||
std::uint32_t metadata_offset = 1473;
|
||||
std::vector<float> interleaved;
|
||||
std::vector<double> output;
|
||||
std::uint32_t last_block_offset = 0;
|
||||
std::uint32_t last_ramp_duration = 0;
|
||||
std::uint32_t last_object_count = 0;
|
||||
bool last_had_payload = false;
|
||||
};
|
||||
|
||||
Status step(SpeakerStep* context, const std::vector<float>& objects16_planar,
|
||||
const oamd::OamdUpdate* update, std::string* error);
|
||||
|
||||
} // namespace joc::speaker
|
||||
Reference in new issue
Block a user