|
VR-Engage
2.2
|
Represents a continuously playing ambient sound with varying volume and pitch characteristics.
#include <soundscape.h>
Public Member Functions | |
| Background (DtSoundscape *soundscape) | |
| void | update (double dt) |
Public Attributes | |
| makAudio::DtSound * | sound |
| Varying | volume |
| Varying | pitch |
| 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::Background::update | ( | double | dt | ) |
Updates the sound's volume and pitch.
| dt | Time elapsed since last update in seconds |
Applies current volume and pitch values to the sound and ensures it continues playing.
| makAudio::DtSound* makVre::DtSoundscape::Background::sound |
The sound resource to play.
| Varying makVre::DtSoundscape::Background::volume |
Volume variation controller.
| Varying makVre::DtSoundscape::Background::pitch |
Pitch variation controller.
| DtSoundscape* makVre::DtSoundscape::Background::mySoundscape |
Reference to the parent soundscape for gain access.
Referenced by Background().