17 #include <boost/serialization/access.hpp>
18 #include <boost/serialization/nvp.hpp>
19 #include <boost/serialization/vector.hpp>
20 #include <boost/serialization/version.hpp>
34 friend class boost::serialization::access;
36 template <
class Archive>
39 ar & BOOST_SERIALIZATION_NVP(myPath);
40 ar & BOOST_SERIALIZATION_NVP(myWeight);
59 std::vector<DtBallisticSoundClipEntry>
myClips;
74 friend class boost::serialization::access;
76 template <
class Archive>
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);
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. "default", "rifle", "heavy").
Definition: DtBallisticSoundGroup.h:56