libdonut
2.3.2
Application framework for cross-platform game development in C++20
|
Configuration options for a SoundStage. More...
#include <donut/audio/SoundStage.hpp>
Public Attributes | |
float | volume = 1.0f |
Global master volume. More... | |
float | speedOfSound = 343.3f |
The speed of sound in the sound stage. More... | |
unsigned | maxSimultaneousSounds = 32u |
The maximum total number of sound instances that can play simultaneously. More... | |
Configuration options for a SoundStage.
float donut::audio::SoundStageOptions::volume = 1.0f |
Global master volume.
The amplitude of all playing sound is multiplied by this gain value, meaning that a value of 1 represents no change, i.e. 100% of the original volume.
float donut::audio::SoundStageOptions::speedOfSound = 343.3f |
The speed of sound in the sound stage.
This value is used for doppler effect calculations and distance delay simulation.
unsigned donut::audio::SoundStageOptions::maxSimultaneousSounds = 32u |
The maximum total number of sound instances that can play simultaneously.
If the number of playing sounds exceeds this number, the ones with the highest volume will be picked to actually play.