Toast Engine
Loading...
Searching...
No Matches
audio_emitter_3d.hpp
Go to the documentation of this file.
1
8#pragma once
10
11namespace toast {
12
18class TOAST_API [[ToastNode]] AudioEmitter3D : public AudioEmitterBase {
19protected:
20 auto emitterPosition(const glm::vec3& listener) -> glm::vec3 override;
21};
22
23}
Abstract base for all spatialized 3D audio emitters.
Simple point-source 3D emitter.
Definition audio_emitter_3d.hpp:18
auto emitterPosition(const glm::vec3 &listener) -> glm::vec3 override
override this to project listener to the shape's nearest surface
Definition audio_emitter_3d.cpp:5
Base class for shape-based audio emitters.
Definition audio_emitter_base.hpp:23
auto listener() noexcept -> event::Listener &
The event Listener owned by this node. Lazy-allocated, freed only with the node.
Definition node.cpp:204