Files
anm2ed/src/audio_data.h
T
shweet 7afdf709c3 Format like smack-a-brother, and write comments as sentences
Four-space indents, braces on their own lines, and one-statement bodies without braces.
Semicolons in comments became full stops.
Designated initializers may leave fields out without a warning.
2026-11-22 17:30:03 -05:00

20 lines
419 B
C++

#pragma once
#include <cstddef>
#include <cstdint>
#include <filesystem>
#include <vector>
// 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 = 0;
AudioData() = default;
AudioData(const unsigned char*, size_t);
AudioData(const std::filesystem::path&);
bool is_valid() const;
};