Unravel Engine C++ Reference
Loading...
Searching...
No Matches
audio_listener_component.h
Go to the documentation of this file.
1#pragma once
2#include <engine/engine_export.h>
3
5#include <audiopp/listener.h>
6#include <math/math.h>
7
8namespace unravel
9{
10
16class audio_listener_component : public component_crtp<audio_listener_component>
17{
18public:
24 void update(const math::transform& t, delta_t dt);
25
26private:
30 std::shared_ptr<audio::listener> listener_;
31};
32
33} // namespace unravel
General purpose transformation class designed to maintain each component of the transformation separa...
Definition transform.hpp:27
Class that contains core data for audio listeners. There can only be one instance of it per scene.
void update(const math::transform &t, delta_t dt)
Updates the audio listener with the given transform and delta time.
std::chrono::duration< float > delta_t
CRTP (Curiously Recurring Template Pattern) base structure for components.