![]() |
VR-Forces 4.3.1 Class Documentation
|
This class maintains the track history settings. More...

Public Member Functions | |
| virtual | ~DtSharedAudioSettings () |
| DTOR. | |
Controls for the sound settings. | |
| virtual void | setAudioEnabled (bool val) |
| Set the master audio enabled state. | |
| virtual bool | audioEnabled () const |
| Get the master audio enabled state. | |
| virtual void | setVolume (double val) |
| Set the master audio volume. | |
| virtual double | volume () const |
| Get the master audio volume. | |
| virtual void | setSoundRangeEnabled (bool val) |
| Set the master audio range enabled state. | |
| virtual bool | soundRangeEnabled () const |
| Get the master audio range enabled state. | |
| virtual void | setSoundRange (double val) |
| Set the master audio range (in meters). | |
| virtual double | soundRange () const |
| Get the master audio range (in meters). | |
Controls for the sound mappings. | |
| virtual unsigned int | entityMapSize () const |
| Get the number of sound mapping records for entity types. | |
| virtual unsigned int | weaponFireMapSize () const |
| Get the number of sound mapping records for weapon-fire types. | |
| virtual unsigned int | detonationMapSize () const |
| Get the number of sound mapping records for detonation types. | |
| virtual const DtEntitySoundMapRecord & | entityMapAt (unsigned int index) const |
| Get a reference to an entity to sound-file map record. | |
| virtual const DtEntitySoundMapRecord & | weaponFireMapAt (unsigned int index) const |
| Get a reference to a weapon-fire to sound-file map record. | |
| virtual const DtEntitySoundMapRecord & | detonationMapAt (unsigned int index) const |
| Get a reference to a detonation to sound-file map record. | |
| virtual unsigned int | entityMapIndex (const DtEntitySoundMapRecord &record) const |
| Get the index of a sound-file map record for an entity. | |
| virtual unsigned int | weaponFireMapIndex (const DtFireSoundMapRecord &record) const |
| Get the index of a sound-file map record for a weapon-fire. | |
| virtual unsigned int | detonationMapIndex (const DtDetonationSoundMapRecord &record) const |
| Get the index of a sound-file map record for a detonation. | |
| virtual void | entityMapAdd (const DtEntitySoundMapRecord &record, bool reload=true) |
| Add a new entity to sound-file map record. | |
| virtual void | entityMapRemove (const DtEntitySoundMapRecord &record, bool reload=true) |
| Remove an entity to sound-file map record. | |
| virtual void | weaponFireMapAdd (const DtFireSoundMapRecord &record, bool reload=false) |
| Add a new weapon-fire to sound-file map record. | |
| virtual void | weaponFireMapRemove (const DtEntitySoundMapRecord &record, bool reload=false) |
| Remove a weapon-fire to sound-file map record. | |
| virtual void | detonationMapAdd (const DtDetonationSoundMapRecord &record, bool reload=false) |
| Add a new detonation to sound-file map record. | |
| virtual void | detonationMapRemove (const DtEntitySoundMapRecord &record, bool reload=false) |
| Remove a detonation to sound-file map record. | |
Deprecated controls for the sound settings. | |
| virtual void | setFilename (const std::string &mtlFile) |
| Set the sound mapping filename ("*.mtl"). | |
| virtual const std::string & | filename () const |
| Get the sound mapping filename ("*.mtl"). | |
Settings record / backup methods | |
| virtual void | setFromRecord (const DtAudioSettingsRecord &rec) |
| Set or reset a complete audio settings and mappings state from a new audio settings record. | |
| virtual void | getRecord (DtAudioSettingsRecord &rec) const |
| Get a copy of the current audio settings and mappings state. | |
| virtual const DtAudioSettingsBackup * | settingsBackup () const |
| Accessor for the settings backup (const). | |
| virtual DtAudioSettingsBackup * | settingsBackup () |
| Accessor for the settings backup. | |
| virtual void | backup () |
| Called to back up the settings. | |
Public Member Functions inherited from makVrv::DtSharedSettings | |
| DtSharedSettings (const DtSharedSettingsManager &manager) | |
| CTOR. | |
| virtual | ~DtSharedSettings () |
| DTOR. | |
| boost::shared_mutex & | mutex () |
| Get the mutex for the settings object. | |
| SafetyKey | safeToEmitSignals () |
| Create a safety key for the function, see above example. | |
| void | setCurrentWriteLock (boost::unique_lock< boost::shared_mutex > *currentWriteLock) |
| No need to call, set by the DtWriteSettingLock object. | |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. | |
Static Public Member Functions | |
| static std::string | className () |
| The class name for this settings object. | |
Protected Member Functions | |
| DtSharedAudioSettings (DtSharedSettingsManager &manager) | |
| Protected CTOR (Use DtReadSettingsLock and DtWriteSettingsLock). | |
Protected Attributes | |
| int | myControllerId |
| The audio controller ID. | |
| DtAudioSettingsRecord | myRecord |
| The current audio settings and sound-file mappings. | |
| DtAudioSettingsBackup * | mySettingsBackup |
| The settings backup object. | |
Friends | |
| class | DtReadSettingsLock< DtSharedAudioSettings > |
| Use the DtReadSettingsLock to read the object. | |
| class | DtWriteSettingsLock< DtSharedAudioSettings > |
| Use the DtWriteSettingsLock to write to the object. | |
This class maintains the track history settings.
|
virtual |
DTOR.
|
protected |
Protected CTOR (Use DtReadSettingsLock and DtWriteSettingsLock).
|
virtual |
Set the master audio enabled state.
When set, this switch will allow all sounds to be played. When not set, all sounds will be prevented from playing.
| [in] | val | is the new enabled state: true for on, false for off. |
|
virtual |
Get the master audio enabled state.
| true | for audio is enabled. |
| false | otherwise. |
|
virtual |
Set the master audio volume.
This value controls the gain as heard from the listener's position.
| [in] | val | is the new volume. |
|
virtual |
|
virtual |
Set the master audio range enabled state.
When set, this switch will only allows sounds to be played from sources within the sound range to the listener. When not set, all sounds will attempt to be played regardless of distance to the listener.
| [in] | val | is the new enabled state: true for on, false for off. |
|
virtual |
Get the master audio range enabled state.
| true | for audio range is enabled. |
| false | otherwise. |
|
virtual |
Set the master audio range (in meters).
This value controls the maximum distance from the listener that sounds will attempt to be played.
| [in] | val | is the new maximum range. |
|
virtual |
|
virtual |
Get the number of sound mapping records for entity types.
|
virtual |
Get the number of sound mapping records for weapon-fire types.
|
virtual |
Get the number of sound mapping records for detonation types.
|
virtual |
Get a reference to an entity to sound-file map record.
| [in] | index | is the index of the record to locate. |
| std::out_of_range | on bad index. |
|
virtual |
Get a reference to a weapon-fire to sound-file map record.
| [in] | index | is the index of the record to locate. |
| std::out_of_range | on bad index. |
|
virtual |
Get a reference to a detonation to sound-file map record.
| [in] | index | is the index of the record to locate. |
| std::out_of_range | on bad index. |
|
virtual |
Get the index of a sound-file map record for an entity.
| [in] | record | is the record to look for in the map. |
|
virtual |
Get the index of a sound-file map record for a weapon-fire.
| [in] | record | is the record to look for in the map. |
|
virtual |
Get the index of a sound-file map record for a detonation.
| [in] | record | is the record to look for in the map. |
|
virtual |
Add a new entity to sound-file map record.
| [in] | record | is the new sound-file map record to be added. |
| [in] | reload | is a flag forcing currently playing sounds to be reloaded from the new sound-file. |
|
virtual |
Remove an entity to sound-file map record.
| [in] | record | is the sound-file map record to be remove. |
| [in] | reload | is a flag forcing currently playing sounds to be reloaded from their sound-file. |
|
virtual |
Add a new weapon-fire to sound-file map record.
| [in] | record | is the new sound-file map record to be added. |
| [in] | reload | is a flag forcing currently playing sounds to be reloaded from the new sound-file. |
|
virtual |
Remove a weapon-fire to sound-file map record.
| [in] | record | is the sound-file map record to be remove. |
| [in] | reload | is a flag forcing currently playing sounds to be reloaded from their sound-file. |
|
virtual |
Add a new detonation to sound-file map record.
| [in] | record | is the new sound-file map record to be added. |
| [in] | reload | is a flag forcing currently playing sounds to be reloaded from the new sound-file. |
|
virtual |
Remove a detonation to sound-file map record.
| [in] | record | is the sound-file map record to be remove. |
| [in] | reload | is a flag forcing currently playing sounds to be reloaded from their sound-file. |
|
virtual |
Set the sound mapping filename ("*.mtl").
| [in] | mtlFile | is the filename of an MTL file to load. |
|
virtual |
Get the sound mapping filename ("*.mtl").
|
virtual |
Set or reset a complete audio settings and mappings state from a new audio settings record.
| [in] | rec | is the audio settings record to copy from. |
|
virtual |
Get a copy of the current audio settings and mappings state.
| [out] | rec | is the audio settings record to copy to. |
|
virtual |
Accessor for the settings backup (const).
Reimplemented from makVrv::DtSharedSettings.
|
virtual |
Accessor for the settings backup.
Reimplemented from makVrv::DtSharedSettings.
|
virtual |
Called to back up the settings.
Reimplemented from makVrv::DtSharedSettings.
|
static |
The class name for this settings object.
|
friend |
Use the DtReadSettingsLock to read the object.
|
friend |
Use the DtWriteSettingsLock to write to the object.
|
protected |
The audio controller ID.
|
protected |
The current audio settings and sound-file mappings.
|
protected |
The settings backup object.