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

SignatureNameDescription
TAudioParamBlock()TAudioParamBlock

Public functions

ReturnsNameDescription
static_assert
static_assert
voidSetGame thread (or any thread).
floatGetAudio thread (or any thread); out-of-range reads 0.
uint32_tCount

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) const

Audio 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