22 #include <makAudio/abstractAudio.h>
33 class DtTerrainPatchObject;
34 class DtSoundComponent;
35 class DtProceduralSoundscapeQuery;
36 class DtProceduralSoundPlayer;
79 static const std::string& theClassName();
102 virtual void removeAmbientChannel(
const std::string& name);
105 virtual void clearAllAmbientChannels();
115 virtual void stopPreview();
118 virtual bool isPreviewActive()
const;
130 virtual void slot_postTick();
135 virtual void handleDelayedSoundCreation();
144 virtual void slot_audioEnabledChanged(
bool enabled);
148 virtual void createChannelSound(std::size_t channelIndex);
152 virtual void slot_initImGui();
156 virtual void slot_renderImGui();
169 virtual void slot_audioListenerObserverChanged(
DtObserver* observer);
172 virtual void slot_currentObserverModeChanged(
int observerMode);
175 virtual void slot_postInitializeObserver();
179 virtual void slot_soundsChanged(
const std::vector<DtProceduralSoundConfig>& sounds);
186 std::unique_ptr<DtSoundComponent>
sound;
187 bool soundPlaying =
false;
202 float resolvedSoundDecibels = 0.0f;
210 makAudio::DtAbstractAudio::Priority resolvedSoundPriority =
211 makAudio::DtAbstractAudio::BACKGROUND_FX;
214 double lastSignedDistanceMeters = DBL_MAX;
215 float lastDecibels = 0.0f;
222 float softStartRemainingSec = 0.0f;
234 std::unique_ptr<DtProceduralSoundscapeQuery>
myQuery;
250 double myLastSimTime = -1.0;
std::vector< std::unique_ptr< DtProceduralSoundPlayer > > myProceduralPlayers
All registered procedural channels. Indexed in parallel with removal by name.
Definition: DtProceduralSoundscapeManager.h:231
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
DtDe & myDe
Definition: DtProceduralSoundscapeManager.h:225
std::unique_ptr< DtProceduralSoundPlayer > myPreviewProceduralPlayer
Definition: DtProceduralSoundscapeManager.h:254
std::unique_ptr< DtSoundComponent > sound
nullptr until device + map are ready
Definition: DtProceduralSoundscapeManager.h:186
DtSignalConnectionManager myCurrentObserverConnection
Signal connections scoped to the current observer's lifetime.
Definition: DtProceduralSoundscapeManager.h:240
DtSignalConnectionManager myConnections
Signal connections (DtDe::signal_postTick, terrain signaler, audio device).
Definition: DtProceduralSoundscapeManager.h:237
DtProceduralSoundscapeChannel config
Full channel configuration as provided to addAmbientChannel().
Definition: DtProceduralSoundscapeManager.h:185
Contains the DLL export macro for vrvAudio classes.
std::vector< ChannelState > myChannels
All registered looping-file channels with their active sound components.
Definition: DtProceduralSoundscapeManager.h:228
std::unique_ptr< DtProceduralSoundscapeQuery > myQuery
The osgEarth query helper. Null until signal_osgEarthMapNodeFound fires.
Definition: DtProceduralSoundscapeManager.h:234
A DtTerrainPatchObject contains the methods for loading a file as a terrain. When loading a file as a...
Definition: DtTerrainPatchObject.h:35
Contains makVrv::DtProceduralClipConfig, DtProceduralLayerConfig, and DtProceduralSoundConfig structs...
Internal state for one registered channel.
Definition: DtProceduralSoundscapeManager.h:183
Contains the declarations for the makVrv ambient sound channel types.
A facade for a DtObserverObject.
Definition: DtObserver.h:38
Contains makVrv::DtVirtualBaseClass class.
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
std::string resolvedSoundFilePath
Filesystem path installed on the OpenAL voice, resolved from the ModelDefinition entry's sound_filepa...
Definition: DtProceduralSoundscapeManager.h:193
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
Base class to provide boost signal/slot management.
Configuration for one ambient sound channel.
Definition: DtProceduralSoundscapeChannel.h:114
Contains makVrv::DtUniqueID type.
#define DT_DLL_VRVAUDIO
Definition: vrvAudio.h:20
Manages a collection of ambient geographic sound channels.
Definition: DtProceduralSoundscapeManager.h:68
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
DtModelSetId
Definition: DtModelSetEnums.h:19
Contains various enum classes relating to model sets.
std::unique_ptr< DtSoundComponent > myPreviewWavSound
Preview state - at most one of these is non-null at any time.
Definition: DtProceduralSoundscapeManager.h:253