19 #include <matrix/vlVector.h>
32 class DtProceduralSound;
33 class DtProceduralSoundBehavior;
35 class DtSoundComponent;
36 class DtSoundComponentSystemImGui;
62 static const std::string& theClassName();
106 virtual void slot_postUpdate(
double simTime);
111 virtual void slot_sceneObjectToBeDeleted(
const DtUniqueID&
id);
116 virtual void slot_audioListenerObserverChanged(
DtObserver* observer);
121 virtual void slot_currentObserverModeChanged(
int observerMode);
124 virtual void handleDelayedSoundCreation();
140 virtual void createProceduralSound(
142 const std::string& behaviorKey = std::string(),
143 const std::map<std::string, std::string>& behaviorParams =
144 std::map<std::string, std::string>(),
145 bool localWeatherAreaEnabled =
false);
161 virtual void initialize();
167 virtual void createImGui();
170 virtual void slot_renderImGui();
194 std::map<DtUniqueID, std::pair<DtSoundComponent*, vrvSignalsLib::connection>>
241 double myLastSimTime = -1.0;
244 std::unique_ptr<DtSoundComponentSystemImGui>
myImGui;
DtSignalConnectionManager myConnections
Connection manager for miscellaneous signal connections.
Definition: DtSoundComponentSystem.h:183
std::map< DtSoundComponent *, int > myResolveAttempts
Retry-attempt count for components stuck waiting for a late-registering SceneObjectAgent. Entries only exist for components that have failed at least one resolve; erased on successful resolve or on removeSound.
Definition: DtSoundComponentSystem.h:218
Manages the lifetime of a single audio source attached to an entity or world position.
Definition: DtSoundComponent.h:48
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
std::map< const DtSoundComponent *, std::unique_ptr< DtProceduralSound > > myProceduralSounds
Map from sound component to its procedural sound. DtSoundComponentSystem owns the sounds...
Definition: DtSoundComponentSystem.h:222
std::set< DtSoundComponent * > myPendingSoundComponents
Components that have completed one update interval and can now be created.
Definition: DtSoundComponentSystem.h:213
DtSignalConnectionManager myCurrentObserverConnection
Connection manager for current observer's signals.
Definition: DtSoundComponentSystem.h:180
std::map< DtModelSetId, std::set< DtSoundComponent * > > myModelSetToSoundComponentLookupMap
Map from model set ID to the set of sound components in that model set.
Definition: DtSoundComponentSystem.h:198
DtSoundComponentSystem manages the active sounds in the scene.
Definition: DtSoundComponentSystem.h:49
Contains the DLL export macro for vrvAudio classes.
DtModelSetId myCurrentModelSet
The current model set ID (determines which sounds are active based on observer mode) ...
Definition: DtSoundComponentSystem.h:189
std::set< DtSoundComponent * > myProceduralUpdateSet
Set of components backed by a procedural sound that need per-frame tick() calls.
Definition: DtSoundComponentSystem.h:225
A facade for a DtObserverObject.
Definition: DtObserver.h:38
Contains makVrv::DtVirtualBaseClass class.
std::set< DtSoundComponent * > myNewSoundComponents
Two-set swap: sounds added this tick land in myNewSoundComponents; at the end of slot_postUpdate the ...
Definition: DtSoundComponentSystem.h:210
DtSignalConnectionManager mySignalPostUpdateConnection
Connection manager for the post-update signal (blocked when no sounds need updates) ...
Definition: DtSoundComponentSystem.h:177
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
std::unique_ptr< DtSoundComponentSystemImGui > myImGui
ImGui debug panel renderer (owned).
Definition: DtSoundComponentSystem.h:244
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
std::map< const DtSoundComponent *, std::unique_ptr< DtProceduralSoundBehavior > > myProceduralBehaviors
Map from sound component to its behavior-backed procedural sound behavior.
Definition: DtSoundComponentSystem.h:231
Base class to provide boost signal/slot management.
std::set< const DtSoundComponent * > myLocalWeatherAreaEnabledSet
Components whose behavior should query local weather areas at model position.
Definition: DtSoundComponentSystem.h:238
std::set< DtSoundComponent * > mySoundUpdateOnTickSet
Set of sound components that need per-frame position updates.
Definition: DtSoundComponentSystem.h:201
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
std::map< DtUniqueID, std::pair< DtSoundComponent *, vrvSignalsLib::connection > > mySceneObjectDeletedSoundLookupMap
Map from scene object unique ID to (sound component, signal connection) pair for deletion handling...
Definition: DtSoundComponentSystem.h:195
DtModelSetId
Definition: DtModelSetEnums.h:19
DtDe & myDe
Reference to the DtDe (distributed entity) that owns this system.
Definition: DtSoundComponentSystem.h:174
Contains various enum classes relating to model sets.
DtObserver * myCurrentObserver
Pointer to the current observer (used to track observer mode changes)
Definition: DtSoundComponentSystem.h:186
ImGui debug panel renderer for DtSoundComponentSystem.
Definition: DtSoundComponentSystemImGui.h:35