![]() |
VR-Forces Developer's Guide
|
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 > ¶ms) |
Public Attributes | |
| float | crossfadeWidthMmhr = 20.0f |
| float | onsetRampMmhr = 3.0f |
| std::vector< DtRainSoundTier > | tiers |
|
static |
Build and return the default hardcoded config. Tier paths use tokens; resolve them before passing to DtRainSoundBehavior.
|
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.
| params | Map produced by DtProceduralSoundscapeChannel::precipitationBehaviorParams. |
| 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.