|
VR-Engage
2.2
|
Represents a sound that plays at random intervals from random positions within a configurable range.
#include <soundscape.h>
Public Member Functions | |
| Periodic (DtSoundscape *soundscape) | |
| void | update (double dt) |
Public Attributes | |
| makAudio::DtSound * | sound |
| DtVector | minRange |
| DtVector | maxRange |
| float | nextTime |
| float | minDelay |
| float | maxDelay |
| float | minPitch |
| float | maxPitch |
| DtSoundscape * | mySoundscape |
|
inline |
Constructor that initializes with parent soundscape reference.
| soundscape | Pointer to the parent soundscape |
References makVre::DtSoundscape::DtSoundscape(), and mySoundscape.
| void makVre::DtSoundscape::Periodic::update | ( | double | dt | ) |
Updates the timer and triggers the sound when appropriate.
| dt | Time elapsed since last update in seconds |
Decrements the timer and when it reaches zero, plays the sound at a random position with random pitch, then resets the timer.
| makAudio::DtSound* makVre::DtSoundscape::Periodic::sound |
The sound resource to play periodically.
| DtVector makVre::DtSoundscape::Periodic::minRange |
Minimum position coordinates for random placement.
| DtVector makVre::DtSoundscape::Periodic::maxRange |
Maximum position coordinates for random placement.
| float makVre::DtSoundscape::Periodic::nextTime |
Time remaining until next sound trigger (seconds)
| float makVre::DtSoundscape::Periodic::minDelay |
Minimum delay between sound triggers (seconds)
| float makVre::DtSoundscape::Periodic::maxDelay |
Maximum delay between sound triggers (seconds)
| float makVre::DtSoundscape::Periodic::minPitch |
Minimum pitch for random pitch selection.
| float makVre::DtSoundscape::Periodic::maxPitch |
Maximum pitch for random pitch selection.
| DtSoundscape* makVre::DtSoundscape::Periodic::mySoundscape |
Reference to the parent soundscape for gain access.
Referenced by Periodic().