VAE - Virtual Audio Engine
1
Small Data Driven Audio Engine
vae_listener.hpp
Go to the documentation of this file.
1
#ifndef _VAE_LISTENER
2
#define _VAE_LISTENER
3
4
#include "../vae_types.hpp"
5
#include "../vae_config.hpp"
6
7
8
namespace
vae
{
namespace
core {
9
10
struct
Listener
{
11
struct
Configuration
{
12
enum
{
13
Mono
= 0,
14
Headphones
,
15
Stereo
,
16
HRTF
,
17
Quadrophonic
,
18
Suround
19
};
20
};
21
Vec3
position
;
22
Vec3
front
;
23
Vec3
up
;
24
ListenerHandle
id
=
InvalidListenerHandle
;
25
/**
26
* ! Listeners all mix to the same mixer channels and have the same configuration
27
* This might change, so that's why it's stored here
28
* Only the configuration for the first listeners is used
29
*/
30
Uchar
configuration
=
Configuration::HRTF
;
31
};
32
33
using
Listeners
=
Listener
[
StaticConfig::MaxListeners
];
34
35
constexpr
int
_VAE_LISTENER_SIZE
=
sizeof
(
Listener
);
36
} }
// vae::core
37
38
#endif
// _VAE_LISTENER
vae::StaticConfig::MaxListeners
constexpr Size MaxListeners
How many listeners can observe 3D voices.
Definition:
vae.hpp:288
vae::core::Vec3
glm::vec3 Vec3
Definition:
vae_types.hpp:47
vae::core::_VAE_LISTENER_SIZE
constexpr int _VAE_LISTENER_SIZE
Definition:
vae_listener.hpp:35
vae::core::Uchar
unsigned char Uchar
Definition:
vae_types.hpp:45
vae::core::Listeners
Listener[StaticConfig::MaxListeners] Listeners
Definition:
vae_listener.hpp:33
vae
Contains Typedefinitions and basic structures use by the public API and internally.
Definition:
vae.hpp:31
vae::ListenerHandle
SmallHandle ListenerHandle
Definition:
vae.hpp:45
vae::InvalidListenerHandle
constexpr ListenerHandle InvalidListenerHandle
Definition:
vae.hpp:59
vae::core::Listener::Configuration
Definition:
vae_listener.hpp:11
vae::core::Listener::Configuration::Suround
@ Suround
Definition:
vae_listener.hpp:18
vae::core::Listener::Configuration::Quadrophonic
@ Quadrophonic
Definition:
vae_listener.hpp:17
vae::core::Listener::Configuration::Mono
@ Mono
Definition:
vae_listener.hpp:13
vae::core::Listener::Configuration::HRTF
@ HRTF
Definition:
vae_listener.hpp:16
vae::core::Listener::Configuration::Headphones
@ Headphones
Definition:
vae_listener.hpp:14
vae::core::Listener::Configuration::Stereo
@ Stereo
Definition:
vae_listener.hpp:15
vae::core::Listener
Definition:
vae_listener.hpp:10
vae::core::Listener::configuration
Uchar configuration
! Listeners all mix to the same mixer channels and have the same configuration This might change,...
Definition:
vae_listener.hpp:30
vae::core::Listener::front
Vec3 front
Definition:
vae_listener.hpp:22
vae::core::Listener::up
Vec3 up
Definition:
vae_listener.hpp:23
vae::core::Listener::position
Vec3 position
Definition:
vae_listener.hpp:21
src
core
pod
vae_listener.hpp
Generated by
1.9.2