![]() |
VR-Forces Developer's Guide
|
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 |
| 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().
| 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).