VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Attributes
makVrv::DtProceduralSoundBehaviorContext Struct Reference

Read-only context passed to every DtProceduralSoundBehavior callback.

The manager and player populate this struct before each callback invocation. Behaviors may read any field freely but must not retain a pointer to this struct between calls.

Public Attributes

float myProximityFactor = 0.0f
 
double mySignedDistanceMeters = 0.0
 
float myChannelBaseVolumeDb = 70.0f
 
float myDensityScale = 1.0f
 
double myElapsedSeconds = 0.0
 
int myClipCount = 0
 

Member Data Documentation

float makVrv::DtProceduralSoundBehaviorContext::myProximityFactor = 0.0f

Fade factor [0.0, 1.0]; 1.0 = fully inside the feature polygon, 0.0 = at the fade boundary. Computed by the soundscape manager from the gate query signed distance.

double makVrv::DtProceduralSoundBehaviorContext::mySignedDistanceMeters = 0.0

Signed distance from the nearest matching feature in metres. Negative = inside the polygon, positive = in the fade zone outside.

float makVrv::DtProceduralSoundBehaviorContext::myChannelBaseVolumeDb = 70.0f

Channel base-volume input, before behavior override; passed as a reference only. The behavior may use this as a starting point when computing currentVolumeDb().

Note
The channel-level configured field has been retired; the soundscape manager now always passes 0.0f here. Step 5 will retire this field.
float makVrv::DtProceduralSoundBehaviorContext::myDensityScale = 1.0f

Channel's configured densityScale.

When a behavior is active, built-in Poisson density scaling is bypassed. Apply manually in nextIntervalSeconds() if desired: return builtInInterval / std::max(myDensityScale, 0.0001f); It is equally valid to ignore this field entirely.

double makVrv::DtProceduralSoundBehaviorContext::myElapsedSeconds = 0.0

Time elapsed since the last frame in seconds.

int makVrv::DtProceduralSoundBehaviorContext::myClipCount = 0

Number of clips currently loaded in the layer being mixed. 0 when called from the manager update path (not per-layer).


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

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)