7 #ifndef CAFU_SOUNDSYS_SOUND_SHADER_HPP_INCLUDED
8 #define CAFU_SOUNDSYS_SOUND_SHADER_HPP_INCLUDED
SoundGroupE
SoundType is used to change properties of all sounds from a specific type in the game code...
Definition: SoundShader.hpp:25
float RollOfFactor
The factor at which the sound is attenuated when listener is outside min distance.
Definition: SoundShader.hpp:69
The sound system decides how to load the sound file associated with this shader.
Definition: SoundShader.hpp:36
float OuterVolume
The sounds volume if listener is outside the sound cone.
Definition: SoundShader.hpp:62
Effects like gunshots etc.
Definition: SoundShader.hpp:28
Ambient sounds like birds.
Definition: SoundShader.hpp:30
SoundGroupE SoundGroup
Determines the group this sound belongs to.
Definition: SoundShader.hpp:72
unsigned int Priority
Priority for sounds using this shader (higher values mean higher priority).
Definition: SoundShader.hpp:71
SoundShaderT(const std::string &SoundShaderName="")
Default constructor used to create an "empty" sound shader with default parameters.
Definition: SoundShader.cpp:12
float InnerConeAngle
The inner angle of the cone in which the sound is emited at normal volume.
Definition: SoundShader.hpp:63
int NrOfLoops
The number of times this sound should be looped. -1 for infinite, 1 for one time sounds.
Definition: SoundShader.hpp:67
float InnerVolume
The volume of this sound (inside its sound cone/at minimal distance). 1.0 meaning 100% volume and 0...
Definition: SoundShader.hpp:61
Player sounds like footsteps etc.
Definition: SoundShader.hpp:29
std::string AudioFile
The sound file this shader is associated with.
Definition: SoundShader.hpp:60
float Pitch
Pitch muliplier for this sound.
Definition: SoundShader.hpp:70
float Pause
Pause in seconds between two loops.
Definition: SoundShader.hpp:68
Load whole sound decrompressed into memory (used for small files).
Definition: SoundShader.hpp:37
LoadTypeE LoadType
Determines the way this sound shaders file is loaded into memory.
Definition: SoundShader.hpp:73
float OuterConeAngle
The outer angle of the cone outside which the sound is emited at outside volume.
Definition: SoundShader.hpp:64
const std::string Name
The name of the sound shader.
Definition: SoundShader.hpp:59
float MaxDistance
The maximum distance that the sound will cease to attenuate.
Definition: SoundShader.hpp:66
float MinDistance
The minimum distance that the sound will cease to continue growing louder at (stays at max...
Definition: SoundShader.hpp:65
Stream sound into memory (decrompressed).
Definition: SoundShader.hpp:38
LoadTypeE
Determines how a sound file is loaded into memory.
Definition: SoundShader.hpp:34
Background music.
Definition: SoundShader.hpp:27
This is a class for parsing text.
Definition: TextParser.hpp:21
Load whole sound compressed into memory (lower memory usage, but higher CPU usage).
Definition: SoundShader.hpp:39
A SoundShader is a description of a sound with various properties.
Definition: SoundShader.hpp:19