Player12
An open source football management simulator
Loading...
Searching...
No Matches
Audio::SoundCommand Struct Reference

#include <synth.h>

Public Attributes

Sound sound = Sound::KICK
 
float gain = 1.0f
 
float pan = 0.0f
 
float intensity = 0.5f
 
std::uint8_t variant = 0
 
float delay = 0.0f
 

Detailed Description

A request to play a sound; plain data, copied to the audio thread.

Member Data Documentation

◆ delay

float Audio::SoundCommand::delay = 0.0f

Seconds to wait before the sound starts.

◆ gain

float Audio::SoundCommand::gain = 1.0f

Linear gain before the bus gains.

◆ intensity

float Audio::SoundCommand::intensity = 0.5f

0..1: strength (kick power, reaction size); shapes timbre and length.

◆ pan

float Audio::SoundCommand::pan = 0.0f

-1 left .. +1 right.

◆ sound

Sound Audio::SoundCommand::sound = Sound::KICK

◆ variant

std::uint8_t Audio::SoundCommand::variant = 0

Sound-specific variant (WhistlePattern for the whistle).


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