DtSoundModel is a distributed object used to configure, start, and stop a sound.
More...
DtSoundModel is a distributed object used to configure, start, and stop a sound.
It can be the sound attached to entity or an interaction sound.
| virtual makVrv::DtSoundModel::~DtSoundModel |
( |
| ) |
|
|
virtual |
| makVrv::DtSoundModel::DtSoundModel |
( |
| ) |
|
|
private |
Default Constructor not implemented – default constructor not allowed.
Copy Constructor not implemented – Copy not allowed.
| virtual void makVrv::DtSoundModel::setModelDefinition |
( |
const std::string & |
modelDef | ) |
|
|
virtual |
Set the model definition.
| void makVrv::DtSoundModel::realize |
( |
const std::string & |
filename, |
|
|
float |
decibels, |
|
|
bool |
is3d, |
|
|
bool |
isLooping, |
|
|
makAudio::DtAbstractAudio::Priority |
priority |
|
) |
| |
Creates the actual makAudio::Sound with the given parameters.
- Parameters
-
| filename | The source path of the sound file. |
| decibels | The default decibel of the sound, 80 by default. |
| is3d | Whether the sound is 3d, 3d sound need update the position, velocity, etc. |
| isLooping | whether play the sound in loop. |
| priority | Default is SECONDARY_FX(1). |
| void makVrv::DtSoundModel::play |
( |
| ) |
|
Plays the sound.
makAudio::DtSound::play
| void makVrv::DtSoundModel::pause |
( |
| ) |
|
Pauses the sound.
makAudio::DtSound::pause
| void makVrv::DtSoundModel::stop |
( |
| ) |
|
Stops the sound.
makAudio::DtSound::stop
| void makVrv::DtSoundModel::setRelativePosition |
( |
bool |
relative | ) |
|
Sets whether use the relative position, non-3d sound will set this to true.
makAudio::DtSound::setRelativePosition
| void makVrv::DtSoundModel::setPosition |
( |
const DtVector & |
pos | ) |
|
Sets the position of the sound in local coordinates, only applicable to 3d sounds.
makAudio::DtSound::setPosition
| void makVrv::DtSoundModel::setVelocity |
( |
const DtVector & |
vel | ) |
|
Sets the velocity of the sound in local coordinates, only applicable to 3d sounds.
makAudio::DtSound::setVelocity
| void makVrv::DtSoundModel::setDecibel |
( |
float |
decibel | ) |
|
Sets the decibel of the sound.
| float makVrv::DtSoundModel::decibel |
( |
| ) |
|
gets the decibel of the sound.
| float makVrv::DtSoundModel::maxFalloffDistance |
( |
| ) |
|
gets the max falloff distance.
| void makVrv::DtSoundModel::setIs3d |
( |
bool |
is3d | ) |
|
Sets if the sound is 3d sound.
| bool makVrv::DtSoundModel::shouldPlaySound |
( |
| ) |
|
Should we play the sound. It will get called before it actually play.
| void makVrv::DtSoundModel::setIsInteractionSound |
( |
bool |
isInteractionSound | ) |
|
Sets whether the sound is an interaction sound.
Interaction sound has it's own source position and have a delay to the listener. Interacion sound do not create an instance of makAudio::DtSound, makAudio::DtAudioManager creates it.
| bool makVrv::DtSoundModel::isInteractionSound |
( |
| ) |
|
Returns whether the sound is an interaction sound.
Interaction sound has it's own source position and have a delay to the listener. Interacion sound do not create an instance of makAudio::DtSound, makAudio::DtAudioManager creates it.
| void makVrv::DtSoundModel::setAttachedEntityEngineRunning |
( |
bool |
running | ) |
|
Sets whether the engine of the entity that the sound is attached to is running.
It will only play the sounds if the engine is running.
| bool makVrv::DtSoundModel::attachedEntityEngineRunning |
( |
| ) |
|
Sets whether the engine of the entity that the sound is attached to is running.
It will only play the sounds if the engine is running.
Assignment Operator not implemented – Copy not allowed.
| DtDe& makVrv::DtSoundModel::myDe |
|
protected |
| makAudio::DtSound* makVrv::DtSoundModel::mySound |
|
protected |
| float makVrv::DtSoundModel::myDecibel |
|
protected |
| bool makVrv::DtSoundModel::myIs3d |
|
protected |
| bool makVrv::DtSoundModel::myTransient |
|
protected |
| bool makVrv::DtSoundModel::myIsInteractionSound |
|
protected |
| DtVector makVrv::DtSoundModel::myPosition |
|
protected |
| bool makVrv::DtSoundModel::myAttachedEntityEngineRunning |
|
protected |
The documentation for this class was generated from the following file:
- /data/exports/nrhent7-1/nightly/docs/vrForces.vrf4-8-branch/include/vrvAudio/DtSoundModel.h