utility 2026.1.9
A comprehensive C++ utilities library tailored for the development of modern desktop and extended reality (XR) applications.
Loading...
Searching...
No Matches
utility::sound::AudioCommand Struct Reference

Represents a command submitted to the audio thread. More...

#include <headers/utility/sound/audio_manager.hpp>

Collaboration diagram for utility::sound::AudioCommand:

Public Attributes

AudioCommandType type
 Type of operation to execute.
 
uint32_t sourceID
 Identifier of the target audio source.
 
CommandData data {}
 Command-specific payload.
 

Detailed Description

Represents a command submitted to the audio thread.

AudioCommand instances are queued through AudioManager::submitCommand() and executed asynchronously by the dedicated audio thread.

Definition at line 119 of file audio_manager.hpp.

Member Data Documentation

◆ data

CommandData utility::sound::AudioCommand::data {}

Command-specific payload.

The active member depends on the value of type.

Commands that do not require additional parameters ignore this field.

Definition at line 138 of file audio_manager.hpp.

◆ sourceID

uint32_t utility::sound::AudioCommand::sourceID

Identifier of the target audio source.

Definition at line 128 of file audio_manager.hpp.

◆ type

AudioCommandType utility::sound::AudioCommand::type

Type of operation to execute.

Definition at line 123 of file audio_manager.hpp.


The documentation for this struct was generated from the following file: