Struct VoiceSnapshot

Struct Documentation

struct VoiceSnapshot

Owned synchronized observation; native progress can change state immediately after return.

Public Members

::CE::Audio::PlaybackState state = ::CE::Audio::PlaybackState::Closed

Observed playback/system state.

float volume = 1

Current per-voice normalized linear gain.

bool looping = false

Current looping policy; changing it does not restart playback.

std::optional<std::chrono::duration<double>> duration

Source duration in seconds when known; not current play position.

std::uint64_t system = 0

Checked output identity; zero for backends without outcome support.

std::uint64_t voice = 0

Logical voice identity, stable across successful restart.

std::uint64_t generation = 0

Current admitted generation; starts at one when supported.

std::optional<PlaybackTerminal> terminal

Immutable current-generation outcome, retained after close.