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

Full configuration for DtRainSoundBehavior.

All fields are optional; defaults match the built-in behaviour.

Static Public Member Functions

static DtRainSoundConfig makeDefault ()
 
static DtRainSoundConfig fromParams (const std::map< std::string, std::string > &params)
 

Public Attributes

float crossfadeWidthMmhr = 20.0f
 
float onsetRampMmhr = 3.0f
 
std::vector< DtRainSoundTier > tiers
 

Member Function Documentation

static DtRainSoundConfig makVrv::DtRainSoundConfig::makeDefault ( )
static

Build and return the default hardcoded config. Tier paths use tokens; resolve them before passing to DtRainSoundBehavior.

static DtRainSoundConfig makVrv::DtRainSoundConfig::fromParams ( const std::map< std::string, std::string > &  params)
static

Build a config from a key-value parameter map. Recognised keys: "crossfadeWidthMmhr", "onsetRampMmhr", "tierN.source", "tierN.peakFrom", "tierN.peakTo", "tierN.gain" (N=0,1,2,...). Falls back to "tierN.wav" for the source key (backwards compatibility). Any absent key falls back to the corresponding makeDefault() value.

Parameters
paramsMap produced by DtProceduralSoundscapeChannel::precipitationBehaviorParams.

Member Data Documentation

float makVrv::DtRainSoundConfig::crossfadeWidthMmhr = 20.0f

Total width (mm/hr) of the equal-power crossfade zone between adjacent tiers.

float makVrv::DtRainSoundConfig::onsetRampMmhr = 3.0f

Width (mm/hr) of the linear onset ramp at the low end of the first tier.

std::vector<DtRainSoundTier> makVrv::DtRainSoundConfig::tiers

Ordered list of tiers, lowest intensity first.


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)