VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtVisibilitySoundConfig.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2026 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvAudio/vrvAudio.h>
13 
14 #include <map>
15 #include <string>
16 #include <vector>
17 
18 namespace makVrv
19 {
26  {
28  std::string source;
29 
32  float peakFromMeters = 9999.0f;
33 
36  float peakToMeters = 0.0f;
37 
40  float gain = 1.0f;
41  };
42 
46  {
48  float clearVisibilityMeters = 10000.0f;
49 
51  float onsetRampMeters = 500.0f;
52 
54  float crossfadeWidthMeters = 1500.0f;
55 
57  std::vector<DtVisibilitySoundTier> tiers;
58 
63  float maxRangeMeters = 0.0f;
64 
69  static DtVisibilitySoundConfig makeDefault();
70 
79  static DtVisibilitySoundConfig fromParams(const std::map<std::string, std::string>& params);
80  };
81 
82 } // namespace makVrv
Full configuration for DtVisibilitySoundBehavior.
Definition: DtVisibilitySoundConfig.h:45
std::string source
WAV/OGG absolute path OR &quot;ProceduralSound:&lt;key&gt;&quot;.
Definition: DtVisibilitySoundConfig.h:28
Contains the DLL export macro for vrvAudio classes.
Configuration for one visibility tier (one audio layer).
Definition: DtVisibilitySoundConfig.h:25
std::vector< DtVisibilitySoundTier > tiers
Ordered tiers, lightest first (clearest visibility first).
Definition: DtVisibilitySoundConfig.h:57
#define DT_DLL_VRVAUDIO
Definition: vrvAudio.h:20

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)