Toast Engine
Toggle main menu visibility
Loading...
Searching...
No Matches
audio_emitter_3d.hpp
Go to the documentation of this file.
1
8
#pragma once
9
#include "
audio_emitter_base.hpp
"
10
11
namespace
toast {
12
18
class
TOAST_API [[ToastNode]]
AudioEmitter3D
:
public
AudioEmitterBase
{
19
protected
:
20
auto
emitterPosition
(
const
glm::vec3&
listener
) -> glm::vec3
override
;
21
};
22
23
}
audio_emitter_base.hpp
Abstract base for all spatialized 3D audio emitters.
toast::AudioEmitter3D
Simple point-source 3D emitter.
Definition
audio_emitter_3d.hpp:18
toast::AudioEmitter3D::emitterPosition
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
toast::AudioEmitterBase
Base class for shape-based audio emitters.
Definition
audio_emitter_base.hpp:23
toast::Node::listener
auto listener() noexcept -> event::Listener &
The event Listener owned by this node. Lazy-allocated, freed only with the node.
Definition
node.cpp:204
engine
src
toast
audio
nodes
audio_emitter_3d.hpp
Generated by
1.17.0