VR-Engage  2.2
Loading...
Searching...
No Matches
makVre::DtSoundscape::Background Struct Reference

Detailed Description

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
 
DtSoundscapemySoundscape
 

Constructor & Destructor Documentation

◆ Background()

makVre::DtSoundscape::Background::Background ( DtSoundscape * soundscape)
inline

Constructor that initializes with parent soundscape reference.

Parameters
soundscapePointer to the parent soundscape

References makVre::DtSoundscape::DtSoundscape(), and mySoundscape.

Member Function Documentation

◆ update()

void makVre::DtSoundscape::Background::update ( double dt)

Updates the sound's volume and pitch.

Parameters
dtTime elapsed since last update in seconds

Applies current volume and pitch values to the sound and ensures it continues playing.

Member Data Documentation

◆ sound

makAudio::DtSound* makVre::DtSoundscape::Background::sound

The sound resource to play.

◆ volume

Varying makVre::DtSoundscape::Background::volume

Volume variation controller.

◆ pitch

Varying makVre::DtSoundscape::Background::pitch

Pitch variation controller.

◆ mySoundscape

DtSoundscape* makVre::DtSoundscape::Background::mySoundscape

Reference to the parent soundscape for gain access.

Referenced by Background().


The documentation for this struct was generated from the following file: