Unravel Engine C++ Reference
Loading...
Searching...
No Matches
unravel::audio_listener_component Class Reference

Class that contains core data for audio listeners. There can only be one instance of it per scene. More...

#include <audio_listener_component.h>

Inheritance diagram for unravel::audio_listener_component:
unravel::component_crtp< audio_listener_component > unravel::basic_component

Public Member Functions

void update (const math::transform &t, delta_t dt)
 Updates the audio listener with the given transform and delta time.
 
- Public Member Functions inherited from unravel::basic_component
void touch ()
 Marks the component as 'touched'.
 

Additional Inherited Members

- Public Types inherited from unravel::component_crtp< audio_listener_component >
using base
 
- Public Attributes inherited from unravel::basic_component
bool eto {}
 Disable empty type optimizations.
 
- Static Public Attributes inherited from unravel::component_crtp< audio_listener_component >
static constexpr bool in_place_delete
 Indicates if the component can be deleted in place.
 

Detailed Description

Class that contains core data for audio listeners. There can only be one instance of it per scene.

Definition at line 16 of file audio_listener_component.h.

Member Function Documentation

◆ update()

void unravel::audio_listener_component::update ( const math::transform & t,
delta_t dt )

Updates the audio listener with the given transform and delta time.

Parameters
tThe transform to update with.
dtThe delta time.

Definition at line 5 of file audio_listener_component.cpp.


The documentation for this class was generated from the following files: