|
VR-Engage
2.2
|
#include <engineAudioUpdater.h>
Public Attributes | |
| std::string | myRpmAttributeName |
| makAudio::DtSound * | myDtSound |
| float | myRpmMax |
| float | myMaxPitch |
| float | myMinPitch |
| float | myPreviousNormalizedRpm |
| double | mySmoothing |
| std::string makVre::DtEngineAudioUpdater::EngineSound::myRpmAttributeName |
Name of the state attribute providing RPM/speed values.
This attribute's value is used to modulate sound pitch and gain.
| makAudio::DtSound* makVre::DtEngineAudioUpdater::EngineSound::myDtSound |
Pointer to the audio sound resource.
| float makVre::DtEngineAudioUpdater::EngineSound::myRpmMax |
Maximum expected RPM/speed value.
Used to normalize the RPM value to a 0.0-1.0 range.
| float makVre::DtEngineAudioUpdater::EngineSound::myMaxPitch |
Maximum pitch scaling factor.
Applied when the normalized RPM value is 1.0 (maximum).
| float makVre::DtEngineAudioUpdater::EngineSound::myMinPitch |
Minimum pitch scaling factor.
Applied when the normalized RPM value is 0.0 (idle).
| float makVre::DtEngineAudioUpdater::EngineSound::myPreviousNormalizedRpm |
Previously calculated normalized RPM value.
Used for smoothing between frames to reduce jitter.
| double makVre::DtEngineAudioUpdater::EngineSound::mySmoothing |
Smoothing factor for RPM changes.
Value between 0.0 (no smoothing) and 0.99 (maximum smoothing). Higher values result in slower response to RPM changes.