flimEngine
|
#include <SoundCall.h>
Public Member Functions | |
SoundCall ()=delete | |
SoundCall (const SoundCall &) | |
const SoundCall & | operator= (const SoundCall &) |
~SoundCall () | |
SoundCall (SoundCallID _id, bool _3D=false) | |
SoundCall (SoundCallID _id, int _priority) | |
Constructor. More... | |
snd_err | Pan (float p, int triggerTime=0) |
Pans. More... | |
snd_err | Pan (float from, float to, float time, int triggerTime=0) |
Pans. More... | |
snd_err | Loop (bool toLoop, int triggerTime=0) |
Loops. More... | |
snd_err | Pitch (float p, int triggerTime=0) |
Pitches. More... | |
snd_err | Pitch (float from, float to, float time, int triggerTime=0) |
Pitches. More... | |
snd_err | Volume (float p, int triggerTime=0) |
Volumes. More... | |
snd_err | Volume (float from, float to, float time, int triggerTime=0) |
Volumes. More... | |
snd_err | Play (bool toLoop=false, int t=0, int _priority=0) |
Plays. More... | |
snd_err | Stop (int t=0) |
Stops the given t. More... | |
snd_err | Pause (int t=0) |
Pauses the given t. More... | |
snd_err | PrintDuration (int time, const char *name) |
snd_err | IsPlaying (bool &) |
Is playing. More... | |
snd_err | GetTimeSinceStarted (int &) |
Gets time since started. More... | |
snd_err | GetVolume (float &) |
Gets a volume. More... | |
snd_err | GetPitch (float &) |
Gets a pitch. More... | |
snd_err | GetPan (float &) |
Gets a pan. More... | |
snd_err | GetPriority (int &) |
Gets a priority. More... | |
snd_err | GetPriorityIndex (int &) |
Gets priority index. More... | |
snd_err | GetLoop (bool &) |
Gets a loop. More... | |
unsigned int | GetHandleNo () |
Gets handle no. More... | |
snd_err | SubmitSoundEndedCallback (CallbackCommand *cmd) |
Callback, called when the submit sound ended. More... | |
snd_err | setPosition (const Vect &) |
Sets a position. More... | |
snd_err | setOrientation (const Vect &vect, float xU, float yU, float zU) |
Sets an orientation. More... | |
snd_err | SetReverbLevel (float level) |
Sets reverb level. More... | |
snd_err | SetReverbTime (float time) |
Sets reverb time. More... | |
snd_err | SetReverbPreDelay (float time) |
Sets reverb pre delay. More... | |
snd_err | SetReverbSize (float size) |
Sets reverb size. More... | |
snd_err | SetReverbDensity (float density) |
Sets reverb density. More... | |
Private Member Functions | |
snd_err | SuccessfullyPlay (int index) |
snd_err | SuccessfullyStop () |
snd_err | SoundEnded () |
Private Attributes | |
Timer | time |
int | priorityIndex |
bool | is3D |
int | currentTime |
float | volume |
float | pitch |
float | pan |
int | priority |
bool | isPlaying |
bool | loop |
SoundExecutioner * | soundEndedBroker |
SoundCallID | id |
Handle | handle |
Friends | |
class | SoundEngine |
class | MarkForPlayCommand |
class | MarkForStopCommand |
class | CallbackSoundEndedCommand |
|
delete |
SoundCall::SoundCall | ( | const SoundCall & | tmp | ) |
SoundCall::~SoundCall | ( | ) |
SoundCall::SoundCall | ( | SoundCallID | _id, |
bool | _3D = false |
||
) |
SoundCall::SoundCall | ( | SoundCallID | _id, |
int | _priority | ||
) |
Constructor.
_id | The identifier. |
_priority | The priority. |
unsigned int SoundCall::GetHandleNo | ( | ) |
Gets handle no.
snd_err SoundCall::GetLoop | ( | bool & | out | ) |
Gets a loop.
[in,out] | parameter1 | The first parameter. |
snd_err SoundCall::GetPan | ( | float & | out | ) |
Gets a pan.
[in,out] | parameter1 | The first parameter. |
snd_err SoundCall::GetPitch | ( | float & | out | ) |
Gets a pitch.
[in,out] | parameter1 | The first parameter. |
snd_err SoundCall::GetPriority | ( | int & | out | ) |
Gets a priority.
[in,out] | parameter1 | The first parameter. |
snd_err SoundCall::GetPriorityIndex | ( | int & | out | ) |
Gets priority index.
[in,out] | parameter1 | The first parameter. |
snd_err SoundCall::GetTimeSinceStarted | ( | int & | out | ) |
Gets time since started.
[in,out] | parameter1 | The first parameter. |
snd_err SoundCall::GetVolume | ( | float & | out | ) |
Gets a volume.
[in,out] | parameter1 | The first parameter. |
snd_err SoundCall::IsPlaying | ( | bool & | out | ) |
Is playing.
[in,out] | parameter1 | The first parameter. |
snd_err SoundCall::Loop | ( | bool | toLoop, |
int | triggerTime = 0 |
||
) |
Loops.
toLoop | True to to loop. |
triggerTime | (Optional) The trigger time. |
snd_err SoundCall::Pan | ( | float | p, |
int | triggerTime = 0 |
||
) |
Pans.
p | The float to process. |
triggerTime | (Optional) The trigger time. |
snd_err SoundCall::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 SoundCall::Pause | ( | int | t = 0 | ) |
Pauses the given t.
t | (Optional) The int to process. |
snd_err SoundCall::Pitch | ( | float | p, |
int | triggerTime = 0 |
||
) |
Pitches.
p | The float to process. |
triggerTime | (Optional) The trigger time. |
snd_err SoundCall::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 SoundCall::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 SoundCall::PrintDuration | ( | int | time, |
const char * | name | ||
) |
snd_err SoundCall::setOrientation | ( | const Vect & | vect, |
float | xU = 0.0f , |
||
float | yU = 1.0f , |
||
float | zU = 0.0f |
||
) |
Sets an orientation.
vect | The vect. |
xU | The x coordinate u. |
yU | The y coordinate u. |
zU | The z coordinate u. |
snd_err SoundCall::setPosition | ( | const Vect & | vect | ) |
Sets a position.
parameter1 | The first parameter. |
snd_err SoundCall::SetReverbDensity | ( | float | density | ) |
Sets reverb density.
density | The density. |
snd_err SoundCall::SetReverbLevel | ( | float | level | ) |
Sets reverb level.
level | The level. |
snd_err SoundCall::SetReverbPreDelay | ( | float | time | ) |
Sets reverb pre delay.
time | The time. |
snd_err SoundCall::SetReverbSize | ( | float | size | ) |
Sets reverb size.
size | The size. |
snd_err SoundCall::SetReverbTime | ( | float | time | ) |
Sets reverb time.
time | The time. |
|
private |
snd_err SoundCall::Stop | ( | int | t = 0 | ) |
Stops the given t.
t | (Optional) The int to process. |
snd_err SoundCall::SubmitSoundEndedCallback | ( | CallbackCommand * | cmd | ) |
Callback, called when the submit sound ended.
[in,out] | cmd | If non-null, the command. |
|
private |
|
private |
snd_err SoundCall::Volume | ( | float | p, |
int | triggerTime = 0 |
||
) |
Volumes.
p | The float to process. |
triggerTime | (Optional) The trigger time. |
snd_err SoundCall::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. |
|
friend |
|
friend |
|
friend |
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |