GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::audio::SoundMixOptions Struct Reference

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.

Detailed Description

Configuration options for a SoundMix.

Member Function Documentation

◆ operator==()

bool grem::audio::SoundMixOptions::operator== ( const SoundMixOptions & other) const
nodiscardconstexprdefault

Compare these options to another set of options for equality.

Parameters
otherthe options to compare these to.
Returns
true if the options are equal, false otherwise.

Member Data Documentation

◆ channelCount

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).

◆ volume

float grem::audio::SoundMixOptions::volume = 1.0f

Default volume of the sound mix.

◆ enableStatistics

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.


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