12 #include <boost/optional.hpp>
double thresholdMeters
Threshold in metres above MSL. Use negative values for below sea level. Example: { Op::Less...
Definition: DtProceduralSoundscapeChannel.h:100
bool modelSet3dModelsEnabled
When true, this channel plays when the 3D Models model set is active. Defaults to true so existing ch...
Definition: DtProceduralSoundscapeChannel.h:210
bool modelSet3dColorizedEnabled
When true, this channel plays when the 3D Colorized model set is active. Defaults to true so existing...
Definition: DtProceduralSoundscapeChannel.h:214
std::vector< std::string > values
Accepted values. The filter passes when the feature's attribute matches any one of these strings (OR ...
Definition: DtProceduralSoundscapeChannel.h:44
Op op
Operator to apply.
Definition: DtProceduralSoundscapeChannel.h:96
double weatherAudibleAltitudeMeters
Observer height-above-terrain (m) at which weather-driven channels start fading out.
Definition: DtProceduralSoundscapeChannel.h:263
double sdfMaxDistanceMeters
SDF mode only. Physical distance in metres encoded at pixel 0.0. Must be >= fadeDistanceMeters on the...
Definition: DtProceduralSoundscapeChannel.h:76
std::string behaviorKey
Optional behavior key registered with DtProceduralSoundBehaviorFactory.
Definition: DtProceduralSoundscapeChannel.h:182
constexpr char kModelDefinitionPrefix[]
Prefix token in DtProceduralSoundscapeChannel::soundFile that identifies a Sound-schema model-definit...
Definition: DtProceduralSoundscapeChannel.h:27
std::string featureLayerName
Name of the osgEarth FeatureSource layer to query, e.g. "data:osm-water". If the layer is not found o...
Definition: DtProceduralSoundscapeChannel.h:134
boost::optional< DtRasterSource > rasterSource
Optional raster image layer used as a spatial trigger. Evaluated after elevation conditions and befor...
Definition: DtProceduralSoundscapeChannel.h:152
double fadeDistanceMeters
Distance in meters over which the sound fades in/out as the observer approaches or leaves the boundar...
Definition: DtProceduralSoundscapeChannel.h:165
std::map< std::string, std::string > visibilityBehaviorParams
Key/value params forwarded to DtVisibilitySoundBehaviorCreator::create(). Empty map -> DtVisibilitySo...
Definition: DtProceduralSoundscapeChannel.h:240
std::string name
Feature attribute key, e.g. "waterway" or "discrete_classification".
Definition: DtProceduralSoundscapeChannel.h:40
std::string layerName
Name of the osgEarth ImageLayer, e.g. "forest-sdf" or "data:landcover-composite". ...
Definition: DtProceduralSoundscapeChannel.h:69
bool featureProximityEnabled
When false, featureLayerName/rasterSource are retained but the proximity gate always passes (gain = 1...
Definition: DtProceduralSoundscapeChannel.h:187
bool visibilityBehaviorEnabled
When true, the Visibility behavior is attached to this channel. soundFile is set automatically to kPr...
Definition: DtProceduralSoundscapeChannel.h:234
Op
Comparison direction applied as: sampledElevation <op> thresholdMeters.
Definition: DtProceduralSoundscapeChannel.h:93
A single attribute condition used to filter features.
Definition: DtProceduralSoundscapeChannel.h:37
std::vector< DtAttributeFilter > attributeFilters
Zero or more attribute conditions that must ALL match for a feature to be considered (AND logic)...
Definition: DtProceduralSoundscapeChannel.h:139
double queryRadiusMeters
Radius in meters around the observer's position used to build the spatial bounds query sent to the Fe...
Definition: DtProceduralSoundscapeChannel.h:172
constexpr char kProceduralSoundPrefix[]
Prefix token in DtProceduralSoundscapeChannel::soundFile that identifies a procedural soundscape chan...
Definition: DtProceduralSoundscapeChannel.h:22
bool modelSet2dIconsEnabled
When true, this channel plays when the 2D Icons model set is active. Defaults to true so existing cha...
Definition: DtProceduralSoundscapeChannel.h:218
bool visibilityLocalWeatherAreaEnabled
When true, the Visibility behavior reads visibility from the nearest DtWeatherAreaObject at the obser...
Definition: DtProceduralSoundscapeChannel.h:246
std::map< std::string, std::string > windBehaviorParams
Key/value params forwarded to DtWindSoundBehaviorCreator::create(). Empty map -> DtWindSoundConfig::m...
Definition: DtProceduralSoundscapeChannel.h:206
float densityScale
Runtime density multiplier applied on top of each DtProceduralSoundLayer's own density. Only meaningful for procedural soundscape channels (soundFile = "ProceduralSound:<key>"). 1.0 = normal density; 0.0 = silent; 2.0 = twice as many events per second. Ignored for regular looping-file channels.
Definition: DtProceduralSoundscapeChannel.h:160
Configuration for an osgEarth ImageLayer used as a spatial sound trigger.
Definition: DtProceduralSoundscapeChannel.h:63
A terrain elevation condition compared against the observer's MSL elevation.
Definition: DtProceduralSoundscapeChannel.h:90
std::vector< DtElevationCondition > elevationConditions
Zero or more elevation conditions that must ALL hold (AND logic). The terrain elevation at the observ...
Definition: DtProceduralSoundscapeChannel.h:146
bool precipitationLocalWeatherAreaEnabled
When true, the Rain behavior reads precipitation type and intensity from the nearest DtWeatherAreaObj...
Definition: DtProceduralSoundscapeChannel.h:224
Mode
Sampling mode.
Definition: DtProceduralSoundscapeChannel.h:66
const char int mode
Definition: ioapi.h:38
std::vector< std::string > classValues
Classification and PolygonizedRaster modes. Accepted red-channel values (mapped to integer 0-255 as s...
Definition: DtProceduralSoundscapeChannel.h:82
Configuration for one ambient sound channel.
Definition: DtProceduralSoundscapeChannel.h:114
double weatherAltitudeFadeWidthMeters
Fade-zone width (m) above weatherAudibleAltitudeMeters over which the weather-channel volume tapers t...
Definition: DtProceduralSoundscapeChannel.h:273
bool windBehaviorEnabled
When true, the Wind behavior is attached to this channel.
Definition: DtProceduralSoundscapeChannel.h:200
std::string name
Caller-defined identifier, e.g. "ocean", "river", "forest". Used as the key for removeAmbientChannel(...
Definition: DtProceduralSoundscapeChannel.h:118
bool windLocalWeatherAreaEnabled
When true, the Wind behavior reads wind speed from the nearest DtWeatherAreaObject at the observer's ...
Definition: DtProceduralSoundscapeChannel.h:230
bool precipitationBehaviorEnabled
When true, the Rain behavior is attached to this channel. soundFile is set automatically to kProcedur...
Definition: DtProceduralSoundscapeChannel.h:191
std::string soundFile
Prefixed reference to the source of this channel's audio. Two forms are supported (raw file paths are...
Definition: DtProceduralSoundscapeChannel.h:130
std::map< std::string, std::string > precipitationBehaviorParams
Key/value params forwarded to DtRainSoundBehaviorCreator::create(). Empty map -> DtRainSoundConfig::m...
Definition: DtProceduralSoundscapeChannel.h:197