|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
Configuration options for a SoundMix. More...
#include <GREM/audio/SoundMix.hpp>
Public Member Functions | |
| constexpr bool | operator== (const SoundMixOptions &other) const =default |
| Compare these options to another set of options for equality. | |
Public Attributes | |
| size_t | channelCount = 2 |
| The number of channels to produce audio for. | |
| float | volume = 1.0f |
| Default volume of the sound mix. | |
| bool | enableStatistics = false |
| Whether to enable statistics gathering or not. | |
Configuration options for a SoundMix.
|
nodiscardconstexprdefault |
Compare these options to another set of options for equality.
| other | the options to compare these to. |
| size_t grem::audio::SoundMixOptions::channelCount = 2 |
The number of channels to produce audio for.
Must be 1 (mono), 2 (stereo), 4 (quad), 6 (5.1) or 8 (7.1).
| float grem::audio::SoundMixOptions::volume = 1.0f |
Default volume of the sound mix.
| bool grem::audio::SoundMixOptions::enableStatistics = false |
Whether to enable statistics gathering or not.
Statistics gathering must be enabled in order for calculateOutputFastFourierTransformStatistics(), getOutputWaveStatistics() and getOutputChannelVolumeStatistics() to work.