17#include <makAudio/abstractAudio.h>
19#include <matrix/vlVector.h>
64 virtual bool play()
override;
78 virtual bool stop()
override;
94 virtual void update(
double dt)
override;
Table-based access to Lua state for configuration data.
Definition initializer.h:38
void loadPeriodic(DtInitTable &data)
Loads a periodic sound configuration from initialization data.
virtual bool play() override
Starts playing all background and periodic sounds.
void loadBackground(DtInitTable &data)
Loads a background sound configuration from initialization data.
virtual bool pause() override
Pauses all currently playing sounds.
virtual bool stop() override
Stops all sounds and resets them.
virtual void setGain(float vol) override
Sets the master volume multiplier for all sounds.
virtual void update(double dt) override
Updates all sounds in the soundscape.
DtSoundscape(std::string filename)
Constructor that loads a soundscape from a configuration file.
std::string mySoundscapePath
Path to the directory containing sound files.
Definition soundscape.h:240
std::vector< Periodic * > myPeriodics
Collection of all periodic sounds in this soundscape.
Definition soundscape.h:237
virtual ~DtSoundscape() override
Destructor that cleans up all sound resources.
std::vector< Background * > myBackgrounds
Collection of all background sounds in this soundscape.
Definition soundscape.h:234
Defines export macros for the VR-Engage Player Station library.
#define PLAYERSTATION_DLL
Definition export.h:24
Component configuration and usage details.
Definition audioUpdater.h:21
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
makAudio::DtSound * sound
The sound resource to play.
Definition soundscape.h:166
DtSoundscape * mySoundscape
Reference to the parent soundscape for gain access.
Definition soundscape.h:182
void update(double dt)
Updates the sound's volume and pitch.
Background(DtSoundscape *soundscape)
Constructor that initializes with parent soundscape reference.
Definition soundscape.h:160
Varying volume
Volume variation controller.
Definition soundscape.h:169
Varying pitch
Pitch variation controller.
Definition soundscape.h:172
float minPitch
Minimum pitch for random pitch selection.
Definition soundscape.h:217
float maxDelay
Maximum delay between sound triggers (seconds)
Definition soundscape.h:214
float maxPitch
Maximum pitch for random pitch selection.
Definition soundscape.h:220
DtSoundscape * mySoundscape
Reference to the parent soundscape for gain access.
Definition soundscape.h:230
float minDelay
Minimum delay between sound triggers (seconds)
Definition soundscape.h:211
Periodic(DtSoundscape *soundscape)
Constructor that initializes with parent soundscape reference.
Definition soundscape.h:193
makAudio::DtSound * sound
The sound resource to play periodically.
Definition soundscape.h:199
DtVector maxRange
Maximum position coordinates for random placement.
Definition soundscape.h:205
void update(double dt)
Updates the timer and triggers the sound when appropriate.
DtVector minRange
Minimum position coordinates for random placement.
Definition soundscape.h:202
float nextTime
Time remaining until next sound trigger (seconds)
Definition soundscape.h:208
A structure for managing a value that varies over time.
Definition soundscape.h:115
void update(double dt)
Updates the current value based on elapsed time.
float rate
Rate of change per second toward target value.
Definition soundscape.h:123
float maxTime
Maximum time between value changes (seconds)
Definition soundscape.h:135
float minTime
Minimum time between value changes (seconds)
Definition soundscape.h:132
float duration
Time remaining until next value change (seconds)
Definition soundscape.h:120
float currentVal
Current value of the parameter.
Definition soundscape.h:117
float maxVal
Maximum allowed value.
Definition soundscape.h:129
void reset()
Resets the variation with a new random target value and duration.
float minVal
Minimum allowed value.
Definition soundscape.h:126