17 #include <matrix/vlVector.h>
19 #include <makAudio/sound.h>
31 class DtDePathConfiguration;
32 class DtModelDefinition;
33 class DtProceduralSound;
35 class DtSoundComponentSystem;
99 float myAuthoredDbfs = 0.0f;
116 makAudio::DtAbstractAudio::Priority myPriority
117 = makAudio::DtAbstractAudio::BACKGROUND_FX;
144 bool myIsInteraction =
false;
165 bool myLocalWeatherAreaEnabled =
false;
199 static void populateFromSoundSchema(
231 virtual void initialize(
const std::string& modelDefinition);
246 virtual void playOnce();
249 virtual void pause();
256 virtual makAudio::DtSound* sound();
260 virtual const makAudio::DtSound* sound()
const;
264 virtual void setIs3d(
bool is3d);
271 virtual void setPosition(
const DtVector& position);
275 virtual void setDecibel(
float decibels);
281 virtual void setIsLooping(
bool isLooping);
289 virtual void setSceneObjectId(
DtUniqueID sceneObjectId);
306 virtual void createAndInitializeSound();
DtProceduralSound * myProceduralSound
Non-owning pointer to the procedural sound, set by DtSoundComponentSystem when mySoundDescriptor.mySoundFilename begins with kProceduralSoundPrefix. Null for regular file-based sounds.
Definition: DtSoundComponent.h:327
Manages the lifetime of a single audio source attached to an entity or world position.
Definition: DtSoundComponent.h:48
DtVector myPosition
Local-space offset applied to the sound's world position when attached to a scene object...
Definition: DtSoundComponent.h:121
makAudio::DtSoundDescriptor mySoundDescriptor
Descriptor for the underlying audio asset (filename, looping flag, 3D flag, gain).
Definition: DtSoundComponent.h:92
std::string myBehaviorKey
Optional behavior factory key (e.g. "Visibility", "Wind", "Rain").
Definition: DtSoundComponent.h:152
DtUniqueID myId
Unique identifier of the owning entity.
Definition: DtSoundComponent.h:313
DtSoundComponentSystem manages the active sounds in the scene.
Definition: DtSoundComponentSystem.h:49
static constexpr float kDefaultSourceSplDb
Default sound pressure level for a newly authored source, in dB SPL at 1 m.
Definition: DtAudioLevel.h:111
Input data bundle passed to initialize(const DtSoundComponentData&).
Definition: DtSoundComponent.h:69
The DtDePathConfiguration contains paths to various files, and can resolve the path macros ...
Definition: DtDePathConfiguration.h:23
Contains the DLL export macro for vrvAudio classes.
DtUniqueID DtElementID
The ElementID is a specific type of unique ID used to represent VR-Vantage uniquely defined elements...
Definition: DtUniqueID.h:23
A model definition Interaction any number of named parameters, and also can be used to store cached d...
Definition: DtModelDefinition.h:44
Composes multiple DtProceduralSoundLayer pools into one streaming ambient sound.
Definition: DtProceduralSound.h:61
DtModelSetId myModelSet
Model set used to resolve the correct LOD instance when no scene object is set.
Definition: DtSoundComponent.h:137
DtSoundState
Playback state of the sound component.
Definition: DtSoundComponent.h:55
DtSoundComponentSystem & mySystem
Reference to the singleton sound component system that drives this component each frame...
Definition: DtSoundComponent.h:319
DtVector myVelocity
Velocity vector used for Doppler calculations when no scene object is attached.
Definition: DtSoundComponent.h:124
static constexpr float kUseDefaultDistance
Sentinel value meaning "leave this distance at the underlying audio engine's default"...
Definition: DtAudioLevel.h:107
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
DtSoundComponentData mySoundData
Current configuration and state for this audio source.
Definition: DtSoundComponent.h:316
A DtSceneObject represents an object that can be positioned in the scene by (possibly) attaching it t...
Definition: DtSceneObject.h:44
std::map< std::string, std::string > myBehaviorParams
Key-value params forwarded to the behavior creator.
Definition: DtSoundComponent.h:159
Contains makVrv::DtUniqueID type.
#define DT_DLL_VRVAUDIO
Definition: vrvAudio.h:20
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
Contains the DtAudioLevel utility class.
makAudio::DtSound * mySound
Owning pointer to the underlying audio object. Null until createAndInitializeSound() runs...
Definition: DtSoundComponent.h:322
DtDe & myDe
The distributed environment this component belongs to.
Definition: DtSoundComponent.h:310
DtModelSetId
Definition: DtModelSetEnums.h:19
bool myIsAddedToSystem
True once this component has been registered with DtSoundComponentSystem.
Definition: DtSoundComponent.h:330
DtSoundComponentData()
Default constructor. Pins mySoundDescriptor.myDecibels to DtAudioLevel::kDefaultSourceSplDb – the phy...
Definition: DtSoundComponent.h:77
Contains various enum classes relating to model sets.
ImGui debug panel renderer for DtSoundComponentSystem.
Definition: DtSoundComponentSystemImGui.h:35