Engine → Audio → clip_asset.h
clip_import_settings
| Type | Struct |
| Namespace | conjure::audio |
| Include File Path | engine/include/conjure/audio/clip_asset.h |
| Source File Path | engine/src/audio/clip_asset.cpp |
| API ↗ | Clips and decoding |
Syntax
Variables
| Access | Name | Type | Default | Description |
|---|---|---|---|---|
| public | forceMono | bool | false | |
| public | normalize | bool | false | |
| public | sampleRate | u32 | 0 | |
| public | storage | clip_storage_setting | clip_ | |
| public | stream | f64 | 10.0 |
Functions
Public
from_json
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
to_document[[nodiscard]] core::json::document to_document() const;The settings as an owning document.
to_json
to_jsonvoid to_json(
core::json::writer &out) const;Writes the settings object with keys in sorted order (canonical form).
Operator Overloads
Public
operator==
operator==[[nodiscard]] bool operator==(
const clip_import_settings &other) const noexcept = default;