VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtBallisticSoundGroup.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 <string>
15 #include <vector>
16 
17 #include <boost/serialization/access.hpp>
18 #include <boost/serialization/nvp.hpp>
19 #include <boost/serialization/vector.hpp>
20 #include <boost/serialization/version.hpp>
21 
22 namespace makVrv
23 {
24 
27  {
29 
30  std::string myPath;
31  float myWeight;
32 
33  private:
34  friend class boost::serialization::access;
35 
36  template <class Archive>
37  void serialize(Archive& ar, const unsigned int /*version*/)
38  {
39  ar & BOOST_SERIALIZATION_NVP(myPath);
40  ar & BOOST_SERIALIZATION_NVP(myWeight);
41  }
42  };
43 
52  {
54 
56  std::string myName;
57 
59  std::vector<DtBallisticSoundClipEntry> myClips;
60 
62  float myPitchMin;
63 
65  float myPitchMax;
66 
68  float myGainMin;
69 
71  float myGainMax;
72 
73  private:
74  friend class boost::serialization::access;
75 
76  template <class Archive>
77  void serialize(Archive& ar, const unsigned int /*version*/)
78  {
79  ar & BOOST_SERIALIZATION_NVP(myName);
80  ar & BOOST_SERIALIZATION_NVP(myClips);
81  ar & BOOST_SERIALIZATION_NVP(myPitchMin);
82  ar & BOOST_SERIALIZATION_NVP(myPitchMax);
83  ar & BOOST_SERIALIZATION_NVP(myGainMin);
84  ar & BOOST_SERIALIZATION_NVP(myGainMax);
85  }
86  };
87 
88 } // namespace makVrv
89 
91 BOOST_CLASS_VERSION(makVrv::DtBallisticSoundGroup, 1)
float myPitchMin
Minimum pitch factor applied to each triggered event; default 0.92.
Definition: DtBallisticSoundGroup.h:62
BOOST_CLASS_VERSION(makArchives::DtDiGuySettingsRecord, 3)
A named collection of clips with per-event randomization controls.
Definition: DtBallisticSoundGroup.h:51
float myGainMax
Maximum linear gain [0..1] applied to each triggered event; default 1.0.
Definition: DtBallisticSoundGroup.h:71
Contains the DLL export macro for vrvAudio classes.
void serialize(Archive &ar, const unsigned int)
Definition: DtBallisticSoundGroup.h:37
std::string myPath
Filesystem path (may contain path-config tokens).
Definition: DtBallisticSoundGroup.h:30
std::vector< DtBallisticSoundClipEntry > myClips
Clips in this group; at least one clip is needed for the group to produce audio.
Definition: DtBallisticSoundGroup.h:59
float myPitchMax
Maximum pitch factor applied to each triggered event; default 1.08.
Definition: DtBallisticSoundGroup.h:65
float myGainMin
Minimum linear gain [0..1] applied to each triggered event; default 0.8.
Definition: DtBallisticSoundGroup.h:68
#define DT_DLL_VRVAUDIO
Definition: vrvAudio.h:20
float myWeight
Relative selection probability; default 1.0.
Definition: DtBallisticSoundGroup.h:31
One weighted clip entry within a DtBallisticSoundGroup.
Definition: DtBallisticSoundGroup.h:26
void serialize(Archive &ar, const unsigned int)
Definition: DtBallisticSoundGroup.h:77
std::string myName
Unique name for this group (e.g. &quot;default&quot;, &quot;rifle&quot;, &quot;heavy&quot;).
Definition: DtBallisticSoundGroup.h:56

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)