Files
anm2ed/src/audio_data.h
T
shweet 7fb2c607c2 Flatten src into model, edit and ui, with .h headers
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.
2026-11-22 17:12:05 -05:00

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;
};
}