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

Configuration for one layer within a DtProceduralSoundConfig.

Each layer corresponds to a DtProceduralSoundLayer that mixes one pool of WAV clips into the parent sound's streaming PCM output.

Public Types

enum  SchedulingMode { SchedulingMode::Poisson, SchedulingMode::FixedParallel }
 

Public Attributes

std::string name
 
std::vector
< DtProceduralClipConfig > 
clips
 
SchedulingMode schedulingMode = SchedulingMode::Poisson
 
float densityEventsPerSecond = 1.0f
 
int fixedParallelEvents = 1
 
float gainMin = 0.05f
 
float gainMax = 1.0f
 
float pitchMin = 0.95f
 
float pitchMax = 1.05f
 

Member Enumeration Documentation

How events are scheduled within this layer.

Enumerator
Poisson 

Exponential (Poisson) inter-arrival timer driven by densityEventsPerSecond.

FixedParallel 

Always exactly fixedParallelEvents instances playing simultaneously.

Member Data Documentation

std::string makVrv::DtProceduralLayerConfig::name

Layer identifier, e.g. "birds", "wind", "rain".

Referenced by makVrv::serialize().

std::vector<DtProceduralClipConfig> makVrv::DtProceduralLayerConfig::clips

Clip pool for this layer.

Referenced by makVrv::serialize().

SchedulingMode makVrv::DtProceduralLayerConfig::schedulingMode = SchedulingMode::Poisson

Scheduling mode. Default: Poisson.

Referenced by makVrv::serialize().

float makVrv::DtProceduralLayerConfig::densityEventsPerSecond = 1.0f

Poisson mode: average events per second (lambda). e.g. 1.5 ~ one event every 0.67 s. Ignored when schedulingMode == FixedParallel.

Referenced by makVrv::serialize().

int makVrv::DtProceduralLayerConfig::fixedParallelEvents = 1

FixedParallel mode: exact number of clip instances to keep playing simultaneously. Ignored when schedulingMode == Poisson.

Referenced by makVrv::serialize().

float makVrv::DtProceduralLayerConfig::gainMin = 0.05f

Minimum linear gain applied to randomly triggered events [0.0, 1.0]. Quieter events simulate sources further from the listener.

Referenced by makVrv::serialize().

float makVrv::DtProceduralLayerConfig::gainMax = 1.0f

Maximum linear gain applied to randomly triggered events [0.0, 1.0].

Referenced by makVrv::serialize().

float makVrv::DtProceduralLayerConfig::pitchMin = 0.95f

Minimum pitch ratio applied to randomly triggered events. 1.0 = original pitch.

Referenced by makVrv::serialize().

float makVrv::DtProceduralLayerConfig::pitchMax = 1.05f

Maximum pitch ratio applied to randomly triggered events.

Referenced by makVrv::serialize().


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)