VR-Engage  2.3
Loading...
Searching...
No Matches
makVre::DtEngineAudioUpdater::EngineSound Struct Reference

#include <engineAudioUpdater.h>

Public Attributes

DtAttributeHandleType< int > myRpmAttr
 
makAudio::DtSound * myDtSound
 
float myRpmMax
 
float myMaxPitch
 
float myMinPitch
 
float myPreviousNormalizedRpm
 
double mySmoothing
 

Member Data Documentation

◆ myRpmAttr

DtAttributeHandleType<int> makVre::DtEngineAudioUpdater::EngineSound::myRpmAttr

This attribute's value is used to modulate sound pitch and gain. The attribute name is configurable via the rpmAttribute config key for each source.

Attribute Store Key<configurable-rpm-attribute>

◆ myDtSound

makAudio::DtSound* makVre::DtEngineAudioUpdater::EngineSound::myDtSound

Pointer to the audio sound resource.

◆ myRpmMax

float makVre::DtEngineAudioUpdater::EngineSound::myRpmMax

Maximum expected RPM/speed value.

Used to normalize the RPM value to a 0.0-1.0 range.

◆ myMaxPitch

float makVre::DtEngineAudioUpdater::EngineSound::myMaxPitch

Maximum pitch scaling factor.

Applied when the normalized RPM value is 1.0 (maximum).

◆ myMinPitch

float makVre::DtEngineAudioUpdater::EngineSound::myMinPitch

Minimum pitch scaling factor.

Applied when the normalized RPM value is 0.0 (idle).

◆ myPreviousNormalizedRpm

float makVre::DtEngineAudioUpdater::EngineSound::myPreviousNormalizedRpm

Previously calculated normalized RPM value.

Used for smoothing between frames to reduce jitter.

◆ mySmoothing

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.


The documentation for this struct was generated from the following file: