3DRadSpace 0.1.0Alpha
3DRadSpace is a free, simple to use, rapid application development game engine.
Loading...
Searching...
No Matches
Engine3DRadSpace.Audio.AudioSource Struct Reference

Represents a 3D sound instance. More...

#include <AudioSource.hpp>

Public Attributes

float Pitch
 Pitch of the sound. Range is [0.5, 2.0]. Default is 1.0.
float Gain
 Volume of the sound. Range is [0.0, 1.0]. Default is 1.0.
float MaxGain
 Max volume of the sound. Range is [0.0, 1.0]. Default is 1.0.
float MinGain
 Minimum volume of the sound. Range is [0.0, 1.0]. Default is 0.0.
Vector3 Position
Vector3 Velocity
Vector3 Direction
float MaxDistance
 Maximum distance at which the sound can be heard.
float ReferenceDistance
 Distance at which the sound is at full volume. Beyond this distance, the sound will start to attenuate.
float RolloffFactor
 Describes how quick the sound attenuates as it moves away from the listener. Default is 1.0.
float ConeOuterGain
 Gain multiplier applied to the sound when the listener is outside the outer cone angle. Range is [0.0, 1.0]. Default is 0.0.
float ConeInnerAngle
 Angle, in degrees, of the inner sound cone within which the sound is heard at full gain. Range is [0, 360]. Default is 360.
float ConeOuterAngle
 Angle, in degrees, of the outer sound cone beyond which the sound is attenuated to ConeOuterGain. Range is [0, 360]. Default is 360.
byte Looping
Math::Vector3 Position = Math::Vector3::Zero()
 Position in space of the sound source.
Math::Vector3 Velocity = Math::Vector3::Zero()
 Velocity if the object emmiting the sound. Used for doppler effect.
Math::Vector3 Direction = Math::Vector3::Zero()
 Normalized direction of the sound source. Used for directional sound.
bool Looping
 Is the sound looping?

Detailed Description

Represents a 3D sound instance.

Member Data Documentation

◆ ConeInnerAngle

float Engine3DRadSpace.Audio.AudioSource.ConeInnerAngle

Angle, in degrees, of the inner sound cone within which the sound is heard at full gain. Range is [0, 360]. Default is 360.

◆ ConeOuterAngle

float Engine3DRadSpace.Audio.AudioSource.ConeOuterAngle

Angle, in degrees, of the outer sound cone beyond which the sound is attenuated to ConeOuterGain. Range is [0, 360]. Default is 360.

◆ ConeOuterGain

float Engine3DRadSpace.Audio.AudioSource.ConeOuterGain

Gain multiplier applied to the sound when the listener is outside the outer cone angle. Range is [0.0, 1.0]. Default is 0.0.

◆ Direction [1/2]

Vector3 Engine3DRadSpace.Audio.AudioSource.Direction

◆ Direction [2/2]

Normalized direction of the sound source. Used for directional sound.

◆ Gain

float Engine3DRadSpace.Audio.AudioSource.Gain

Volume of the sound. Range is [0.0, 1.0]. Default is 1.0.

◆ Looping [1/2]

byte Engine3DRadSpace.Audio.AudioSource.Looping

◆ Looping [2/2]

◆ MaxDistance

float Engine3DRadSpace.Audio.AudioSource.MaxDistance

Maximum distance at which the sound can be heard.

◆ MaxGain

float Engine3DRadSpace.Audio.AudioSource.MaxGain

Max volume of the sound. Range is [0.0, 1.0]. Default is 1.0.

◆ MinGain

float Engine3DRadSpace.Audio.AudioSource.MinGain

Minimum volume of the sound. Range is [0.0, 1.0]. Default is 0.0.

◆ Pitch

float Engine3DRadSpace.Audio.AudioSource.Pitch

Pitch of the sound. Range is [0.5, 2.0]. Default is 1.0.

◆ Position [1/2]

Vector3 Engine3DRadSpace.Audio.AudioSource.Position

◆ Position [2/2]

◆ ReferenceDistance

float Engine3DRadSpace.Audio.AudioSource.ReferenceDistance

Distance at which the sound is at full volume. Beyond this distance, the sound will start to attenuate.

◆ RolloffFactor

float Engine3DRadSpace.Audio.AudioSource.RolloffFactor

Describes how quick the sound attenuates as it moves away from the listener. Default is 1.0.

◆ Velocity [1/2]

Vector3 Engine3DRadSpace.Audio.AudioSource.Velocity

◆ Velocity [2/2]

Velocity if the object emmiting the sound. Used for doppler effect.


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