![]() |
VR-Forces Developer's Guide
|
A named collection of clips with per-event randomization controls.
Each group is loaded as one DtProceduralSoundLayer in a DtBallisticSoundStream. When a CPA trigger fires, the manager calls triggerEvent() on the matching layer, which picks a clip by weight and applies randomized pitch and gain.
Public Member Functions | |
| DtBallisticSoundGroup () | |
Public Attributes | |
| std::string | myName |
| std::vector < DtBallisticSoundClipEntry > | myClips |
| float | myPitchMin |
| float | myPitchMax |
| float | myGainMin |
| float | myGainMax |
Private Member Functions | |
| template<class Archive > | |
| void | serialize (Archive &ar, const unsigned int) |
Friends | |
| class | boost::serialization::access |
| makVrv::DtBallisticSoundGroup::DtBallisticSoundGroup | ( | ) |
|
inlineprivate |
|
friend |
| std::string makVrv::DtBallisticSoundGroup::myName |
Unique name for this group (e.g. "default", "rifle", "heavy").
| std::vector<DtBallisticSoundClipEntry> makVrv::DtBallisticSoundGroup::myClips |
Clips in this group; at least one clip is needed for the group to produce audio.
| float makVrv::DtBallisticSoundGroup::myPitchMin |
Minimum pitch factor applied to each triggered event; default 0.92.
| float makVrv::DtBallisticSoundGroup::myPitchMax |
Maximum pitch factor applied to each triggered event; default 1.08.
| float makVrv::DtBallisticSoundGroup::myGainMin |
Minimum linear gain [0..1] applied to each triggered event; default 0.8.
| float makVrv::DtBallisticSoundGroup::myGainMax |
Maximum linear gain [0..1] applied to each triggered event; default 1.0.