Resources and utilities sit directly in src. The ImGui windows, wizards, popups and helpers are in ui. Headers that would shadow system ones are renamed: math_util, timestamp, subprocess, localization. Includes are written from src.
23 lines
458 B
C++
23 lines
458 B
C++
#pragma once
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
#include <filesystem>
|
|
#include <vector>
|
|
|
|
namespace anm2ed::resource
|
|
{
|
|
// Encoded audio file bytes. uid identifies the bytes so playback state can be cached by it.
|
|
struct AudioData
|
|
{
|
|
std::vector<unsigned char> bytes{};
|
|
std::uint64_t uid{};
|
|
|
|
AudioData() = default;
|
|
AudioData(const unsigned char*, size_t);
|
|
AudioData(const std::filesystem::path&);
|
|
|
|
bool is_valid() const;
|
|
};
|
|
}
|