Game Audio Module
A C++ audio system using miniaudio with Python bindings
Loading...
Searching...
No Matches
Public Attributes | List of all members
audio::RandomSoundContainerConfig Struct Reference

Configuration for a random sound container. More...

#include <random_sound_container.h>

Public Attributes

bool avoidRepeat = true
 Avoid playing the same sound twice in a row.
 
GroupHandle group = GroupHandle::Invalid()
 Audio group to assign sounds to.
 
float maxDuration = 0.0f
 Maximum duration in seconds (0 = no limit)
 
float pitchMax = 1.0f
 Maximum pitch shift (1.0 = normal pitch)
 
float pitchMin = 1.0f
 Minimum pitch shift (1.0 = normal pitch)
 

Detailed Description

Configuration for a random sound container.

Member Data Documentation

◆ avoidRepeat

bool audio::RandomSoundContainerConfig::avoidRepeat = true

Avoid playing the same sound twice in a row.

◆ group

GroupHandle audio::RandomSoundContainerConfig::group = GroupHandle::Invalid()

Audio group to assign sounds to.

◆ maxDuration

float audio::RandomSoundContainerConfig::maxDuration = 0.0f

Maximum duration in seconds (0 = no limit)

◆ pitchMax

float audio::RandomSoundContainerConfig::pitchMax = 1.0f

Maximum pitch shift (1.0 = normal pitch)

◆ pitchMin

float audio::RandomSoundContainerConfig::pitchMin = 1.0f

Minimum pitch shift (1.0 = normal pitch)


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