4#ifndef GREM_AUDIO_SOUND_MIX_HPP
5#define GREM_AUDIO_SOUND_MIX_HPP
SoundMix()
Construct a stereo sound mix with the default options.
Definition SoundMix.hpp:66
Array< float, 256 > calculateOutputFastFourierTransformStatistics() const
Calculate the fast Fourier transform of the audio currently playing through the sound mix.
SoundMix(const SoundMixOptions &options, const SoundOptions &soundOptions={})
Construct a sound mix.
float getOutputChannelVolumeStatistics(uint32_t channelIndex) const
Get an approximation of the volume of the audio currently playing through a specific channel of the s...
SoundInstanceID createPausedSound(const Sound &sound, float volume=-1.0f)
Create a new relative sound instance, but don't start playing it yet.
Array< float, 256 > getOutputWaveStatistics() const
Get the sound wave currently playing through the sound mix.
void setStatisticsEnabled(bool newEnableStatistics)
Set whether to enable statistics gathering or not.
SoundInstanceID playSoundClocked(Duration time, const Sound &sound, float volume=-1.0f)
Create a new 3D sound instance and start playing it at a specific time relative to other sounds that ...
SoundInstanceID playSound(const Sound &sound, float volume=-1.0f)
Create a new relative sound instance and start playing it.
SoundInstanceID createPaused3DSound(const Sound &sound, vec3 position, vec3 velocity, float volume=-1.0f)
Create a new 3D sound instance, but don't start playing it yet.
SoundInstanceID play3DSoundClocked(Duration time, const Sound &sound, vec3 position, vec3 velocity, float volume=-1.0f)
Create a new 3D sound instance and start playing it at a specific time relative to other sounds that ...
SoundInstanceID play3DSound(const Sound &sound, vec3 position, vec3 velocity, float volume=-1.0f)
Create a new 3D sound instance and start playing it.
void setVolume(float volume)
Set the volume of the sound mix.
Sound() noexcept=default
Construct an invalid sound that must be reassigned before use.
Clock::duration Duration
Definition Clock.hpp:25
vec< 3, float > vec3
Definition math.hpp:439
Opaque handle to a specific instance of a sound or sound mix playing in a sound stage or sound mix.
Definition SoundInstanceID.hpp:23
Configuration options for a SoundMix.
Definition SoundMix.hpp:21
size_t channelCount
The number of channels to produce audio for.
Definition SoundMix.hpp:27
bool enableStatistics
Whether to enable statistics gathering or not.
Definition SoundMix.hpp:41
float volume
Default volume of the sound mix.
Definition SoundMix.hpp:32
constexpr bool operator==(const SoundMixOptions &other) const =default
Compare these options to another set of options for equality.
Configuration options for a Sound.
Definition Sound.hpp:95