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

#include <engineAudioUpdater.h>

Public Attributes

std::string myRpmAttributeName
 
makAudio::DtSound * myDtSound
 
float myRpmMax
 
float myMaxPitch
 
float myMinPitch
 
float myPreviousNormalizedRpm
 
double mySmoothing
 

Member Data Documentation

◆ myRpmAttributeName

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.

◆ 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: