class
TAudioParamBlock
Control values from the game thread to the audio thread without a lock: one relaxed atomic float per slot. Each value is independent, so a block may read a mix of old and new slots; put values that must change together in one generator-side struct behind a single command instead.
- Module
- Audio
- Header
#include "Audio/AudioGenerator.h"- Namespace
Mowo- Template
template<uint32_t N>
Constructors
| Signature | Name | Description |
|---|---|---|
TAudioParamBlock() | TAudioParamBlock |
Public functions
| Returns | Name | Description |
|---|---|---|
static_assert | ||
static_assert | ||
void | Set | Game thread (or any thread). |
float | Get | Audio thread (or any thread); out-of-range reads 0. |
uint32_t | Count |
Function details
TAudioParamBlock
C++
TAudioParamBlock()static_assert
C++
static_assert(N > 0, "a parameter block needs at least one slot")static_assert
C++
static_assert(std::atomic<float>::is_always_lock_free, "audio parameters must be lock-free")Set
C++
void Set(uint32_t index, float value)Game thread (or any thread).
Get
C++
float Get(uint32_t index) constAudio thread (or any thread); out-of-range reads 0.
Count
C++
static constexpr uint32_t Count()Generated from Audio/AudioGenerator.h via audio.json · Dec 5, 2026Version 1.1.0