voice_id
| Type | Struct |
| Namespace | conjure::audio |
| Include File Path | engine/include/conjure/audio/voice.h |
| Source File Path | engine/src/audio/voice.cpp |
| API ↗ | Playing sounds |
Syntax
Variables
| Access | Name | Type | Default | Description |
|---|---|---|---|---|
| public | key | core::slot_key | {} |
Functions
Public
from_u64
from_u64Inverse of to_u64().
is_valid
is_valid[[nodiscard]] constexpr bool is_valid() const noexcept;True for every id the engine issued; false for the null id.
null
null[[nodiscard]] static constexpr voice_id null() noexcept;The null id. Equivalent to voice_id{}.
to_u64
to_u64[[nodiscard]] constexpr u64 to_u64() const noexcept;Packs the id into one integer (generation in the high 32 bits).
Operator Overloads
Public
operator<=>
operator<=>[[nodiscard]] constexpr auto operator<=>(
const voice_id &) const noexcept = default;