Skip to content

Engine → Audio → clip_asset.h

clip_import_settings

Syntax

struct CONJURE_API clip_import_settings

Variables

AccessNameTypeDefaultDescription
publicforceMonoboolfalse
publicnormalizeboolfalse
publicsampleRateu320
publicstorageclip_storage_settingclip_storage_setting::AUTO
publicstreamThresholdSecondsf6410.0

Functions

Public

from_json

[[nodiscard]] static core::result<clip_import_settings> from_json(
    const core::json::value &source);

Reads the settings object; missing keys keep their defaults. Fails with INVALID_SETTINGS for an unknown storage name, a negative threshold or a sample rate outside 0 or [MIN_SAMPLE_RATE, MAX_SAMPLE_RATE]. An invalid (missing) value yields the defaults.

to_document

[[nodiscard]] core::json::document to_document() const;

The settings as an owning document.

to_json

void to_json(
    core::json::writer &out) const;

Writes the settings object with keys in sorted order (canonical form).

Operator Overloads

Public

operator==

[[nodiscard]] bool operator==(
    const clip_import_settings &other) const noexcept = default;