Skip to content

Engine → Audio → clip.h

audio_clip

Syntax

struct CONJURE_API audio_clip

Variables

AccessNameTypeDefaultDescription
publicencodedstd::shared_ptr<const std::vector<byte>>nullptr
publicinfoclip_info{}
publicpcmstd::shared_ptr<const pcm_buffer>nullptr

Functions

Public

duration_seconds

[[nodiscard]] f64 duration_seconds() const noexcept;

Duration in seconds from info.

is_streamed

[[nodiscard]] bool is_streamed() const noexcept;

True when the clip decodes while playing instead of holding PCM.

is_valid

[[nodiscard]] bool is_valid() const noexcept;

True when the clip carries the buffer its storage kind needs and the info agrees with it.