flimEngine
|
flimSounds provide audio playback and processing functionality. More...
![]() |
Classes | |
class | flimSound |
A flim sound. More... | |
Enumerations | |
enum | DistanceCurve { DistanceCurve::Linear, DistanceCurve::Logarithmic, DistanceCurve::Reverse_Logarithmic } |
Values that represent distance curves. More... | |
enum | SourceType { SourceType::Point, SourceType::Plane } |
Values that represent source types. More... | |
Functions | |
flimSound::flimSound (SoundCallID id, bool is3DSound=false, bool occ=false) | |
Constructor. More... | |
snd_err | flimSound::getPosition (Vect &out) const |
Gets a position. More... | |
snd_err | flimSound::setPosition (const Vect &orient) |
Sets a position. More... | |
snd_err | flimSound::SetOrientation (const Vect &vect, float xU=0.0f, float yU=1.0f, float zU=0.0f) |
Sets an orientation. More... | |
snd_err | flimSound::getDistanceCurve (DistanceCurve &out) |
Gets distance curve. More... | |
snd_err | flimSound::setDistanceCurve (const DistanceCurve &distCurve) |
Sets distance curve. More... | |
snd_err | flimSound::getReverb (flimReverb &out) const |
Gets a reverb. More... | |
snd_err | flimSound::getFilter (flimFilter &out) const |
Gets a filter. More... | |
snd_err | flimSound::Pan (float p, int triggerTime=0) |
Pans. More... | |
snd_err | flimSound::Pan (float from, float to, float time, int triggerTime=0) |
Pans. More... | |
snd_err | flimSound::Loop (bool toLoop, int triggerTime=0) |
Loops. More... | |
snd_err | flimSound::Pitch (float p, int triggerTime=0) |
Pitches. More... | |
snd_err | flimSound::Pitch (float from, float to, float time, int triggerTime=0) |
Pitches. More... | |
snd_err | flimSound::Volume (float p, int triggerTime=0) |
Volumes. More... | |
snd_err | flimSound::Volume (float from, float to, float time, int triggerTime=0) |
Volumes. More... | |
snd_err | flimSound::Play (bool toLoop=false, int t=0, int _priority=0) |
Plays. More... | |
snd_err | flimSound::Stop (int t=0) |
Stops the given t. More... | |
snd_err | flimSound::Pause (int t=0) |
Pauses the given t. More... | |
snd_err | flimSound::IsPlaying (bool &) |
Is playing. More... | |
snd_err | flimSound::GetTimeSinceStarted (int &) |
Gets time since started. More... | |
snd_err | flimSound::GetVolume (float &) |
Gets a volume. More... | |
snd_err | flimSound::GetPitch (float &) |
Gets a pitch. More... | |
snd_err | flimSound::GetPan (float &) |
Gets a pan. More... | |
snd_err | flimSound::GetPriority (int &) |
Gets a priority. More... | |
snd_err | flimSound::GetLoop (bool &) |
Gets a loop. More... | |
snd_err | flimSound::SubmitSoundEndedCallback (CallbackCommand *cmd) |
Callback, called when the submit sound ended. More... | |
errcode | flimSound::Collision (GameObject *) |
Collisions the given parameter 1. More... | |
errcode | flimSound::Collision (Collidable *) override |
Collisions the given parameter 1. More... | |
errcode | flimSound::CollisionTerrain (const CollisionVolumeAABB &aabb) override |
Collision terrain. More... | |
errcode | flimSound::CollisionEnter (Collidable *) |
Collision enter. More... | |
errcode | flimSound::SetReverbLevel (float level) |
Sets reverb level. More... | |
errcode | flimSound::SetReverbTime (float time) |
Sets reverb time. More... | |
errcode | flimSound::SetReverbPreDelay (float time) |
Sets reverb pre delay. More... | |
errcode | flimSound::SetReverbSize (float size) |
Sets reverb size. More... | |
errcode | flimSound::SetReverbDensity (float density) |
Sets reverb density. More... | |
flimSounds provide audio playback and processing functionality.
|
strong |
|
strong |
errcode flimSound::Collision | ( | GameObject * | ) |
Collisions the given parameter 1.
[in,out] | parameter1 | If non-null, the first parameter. |
|
inlineoverridevirtual |
Collisions the given parameter 1.
[in,out] | parameter1 | If non-null, the first parameter. |
Reimplemented from Collidable.
|
virtual |
Collision enter.
[in,out] | parameter1 | If non-null, the first parameter. |
Reimplemented from Collidable.
|
overridevirtual |
Collision terrain.
aabb | The aabb. |
Reimplemented from Collidable.
flimSound::flimSound | ( | SoundCallID | id, |
bool | is3DSound = false , |
||
bool | occ = false |
||
) |
Constructor.
id | The identifier. |
is3DSound | (Optional) True if this object is 3D sound. |
occ | (Optional) True to occ. |
snd_err flimSound::getDistanceCurve | ( | DistanceCurve & | out | ) |
Gets distance curve.
[in,out] | out | The out. |
snd_err flimSound::getFilter | ( | flimFilter & | out | ) | const |
Gets a filter.
[in,out] | out | The out. |
snd_err flimSound::GetLoop | ( | bool & | loop | ) |
Gets a loop.
[in,out] | parameter1 | The first parameter. |
snd_err flimSound::GetPan | ( | float & | p | ) |
Gets a pan.
[in,out] | parameter1 | The first parameter. |
snd_err flimSound::GetPitch | ( | float & | p | ) |
Gets a pitch.
[in,out] | parameter1 | The first parameter. |
snd_err flimSound::getPosition | ( | Vect & | out | ) | const |
Gets a position.
[in,out] | out | The out. |
snd_err flimSound::GetPriority | ( | int & | p | ) |
Gets a priority.
[in,out] | parameter1 | The first parameter. |
snd_err flimSound::getReverb | ( | flimReverb & | out | ) | const |
Gets a reverb.
[in,out] | out | The out. |
snd_err flimSound::GetTimeSinceStarted | ( | int & | time | ) |
Gets time since started.
[in,out] | parameter1 | The first parameter. |
snd_err flimSound::GetVolume | ( | float & | vol | ) |
Gets a volume.
[in,out] | parameter1 | The first parameter. |
snd_err flimSound::IsPlaying | ( | bool & | out | ) |
Is playing.
[in,out] | parameter1 | The first parameter. |
snd_err flimSound::Loop | ( | bool | toLoop, |
int | triggerTime = 0 |
||
) |
Loops.
toLoop | True to to loop. |
triggerTime | (Optional) The trigger time. |
snd_err flimSound::Pan | ( | float | p, |
int | triggerTime = 0 |
||
) |
Pans.
p | The float to process. |
triggerTime | (Optional) The trigger time. |
snd_err flimSound::Pan | ( | float | from, |
float | to, | ||
float | time, | ||
int | triggerTime = 0 |
||
) |
Pans.
from | Source for the. |
to | to. |
time | The time. |
triggerTime | (Optional) The trigger time. |
snd_err flimSound::Pause | ( | int | t = 0 | ) |
Pauses the given t.
t | (Optional) The int to process. |
snd_err flimSound::Pitch | ( | float | p, |
int | triggerTime = 0 |
||
) |
Pitches.
p | The float to process. |
triggerTime | (Optional) The trigger time. |
snd_err flimSound::Pitch | ( | float | from, |
float | to, | ||
float | time, | ||
int | triggerTime = 0 |
||
) |
Pitches.
from | Source for the. |
to | to. |
time | The time. |
triggerTime | (Optional) The trigger time. |
snd_err flimSound::Play | ( | bool | toLoop = false , |
int | t = 0 , |
||
int | _priority = 0 |
||
) |
Plays.
toLoop | (Optional) True to to loop. |
t | (Optional) The int to process. |
_priority | (Optional) The priority. |
snd_err flimSound::setDistanceCurve | ( | const DistanceCurve & | distCurve | ) |
Sets distance curve.
distCurve | The distance curve. |
snd_err flimSound::SetOrientation | ( | const Vect & | vect, |
float | xU = 0.0f , |
||
float | yU = 1.0f , |
||
float | zU = 0.0f |
||
) |
Sets an orientation.
vect | The vect. |
xU | (Optional) The x coordinate u. |
yU | (Optional) The y coordinate u. |
zU | (Optional) The z coordinate u. |
snd_err flimSound::setPosition | ( | const Vect & | orient | ) |
Sets a position.
orient | The orient. |
errcode flimSound::SetReverbDensity | ( | float | density | ) |
Sets reverb density.
density | The density. |
errcode flimSound::SetReverbLevel | ( | float | level | ) |
Sets reverb level.
level | The level. |
errcode flimSound::SetReverbPreDelay | ( | float | time | ) |
Sets reverb pre delay.
time | The time. |
errcode flimSound::SetReverbSize | ( | float | size | ) |
Sets reverb size.
size | The size. |
errcode flimSound::SetReverbTime | ( | float | time | ) |
Sets reverb time.
time | The time. |
snd_err flimSound::Stop | ( | int | t = 0 | ) |
Stops the given t.
t | (Optional) The int to process. |
snd_err flimSound::SubmitSoundEndedCallback | ( | CallbackCommand * | cmd | ) |
Callback, called when the submit sound ended.
[in,out] | cmd | If non-null, the command. |
snd_err flimSound::Volume | ( | float | p, |
int | triggerTime = 0 |
||
) |
Volumes.
p | The float to process. |
triggerTime | (Optional) The trigger time. |
snd_err flimSound::Volume | ( | float | from, |
float | to, | ||
float | time, | ||
int | triggerTime = 0 |
||
) |
Volumes.
from | Source for the. |
to | to. |
time | The time. |
triggerTime | (Optional) The trigger time. |