|
VR-Engage
2.2
|
This component manages audio feedback for the spectator role, including handling sound effects, ambient audio, and event-based audio cues. It responds to simulation events and updates audio sources accordingly.
#include <audioUpdater.h>
Public Member Functions | |
| DtSpectatorAudioUpdater () | |
| virtual | ~DtSpectatorAudioUpdater () override |
| virtual bool | initialize (makVre::DtPlayerStation *player, makVre::DtInitTable &config) override |
| virtual void | tick (double dt) override |
| virtual void | shutdown () override |
| virtual const char * | type () const override |
Public Member Functions inherited from makVre::DtPlayerComponent | |
| DtPlayerComponent () | |
| virtual | ~DtPlayerComponent () |
| virtual bool | postInitialize () |
| virtual void | setName (const std::string &name) |
| virtual const std::string & | name () |
| virtual DtPlayerStation & | player () |
| virtual DtAttributeHandle & | playerAttributeStore () |
| virtual const DtAttributeHandle & | playerAttributeStore () const |
Additional Inherited Members | |
Protected Member Functions inherited from makVre::DtPlayerComponent | |
| virtual void | initializeStateAttributes () |
Protected Attributes inherited from makVre::DtPlayerComponent | |
| std::string | myName |
| DtInitTable | myConfig |
| DtPlayerStation * | myPlayer |
| makVrv::DtDe * | myDe |
| DtEntityResolver * | myResolver |
| DtAttributeCallbackManager | myAttributeCallbacks |
| makVre::DtSpectatorAudioUpdater::DtSpectatorAudioUpdater | ( | ) |
Default constructor.
|
overridevirtual |
Virtual destructor.
|
overridevirtual |
Initializes the audio updater component.
| player | Pointer to the player station |
| config | Reference to the initialization configuration |
Sets up audio sources and registers message handlers for audio events
Reimplemented from makVre::DtPlayerComponent.
References makVre::DtPlayerComponent::player().
|
overridevirtual |
Updates audio state each frame.
| dt | Delta time since the last update in seconds |
Updates audio sources and manages sound playback based on simulation state
Implements makVre::DtPlayerComponent.
|
overridevirtual |
Performs cleanup when the component is shut down.
Releases audio resources and unregisters message handlers
Reimplemented from makVre::DtPlayerComponent.
|
overridevirtual |
Returns the component type identifier.
Returns the type identifier string for this component, which is used by the VR-Engage framework for component identification and management. The returned value matches DtSpectatorAudioUpdaterType.
Implements makVre::DtPlayerComponent.