4#include "../vae_types.hpp"
5#include "../vae_config.hpp"
10namespace vae {
namespace core {
constexpr Size MaxChainedEvents
How many chained events can fit in chain_events on the core::Event structure.
constexpr int _VAE_EVENT_SIZE
Contains Typedefinitions and basic structures use by the public API and internally.
float Sample
Default sample types used where ever possible, changing this means the engine needs to be recompiled,...
constexpr SourceHandle InvalidSourceHandle
constexpr EventHandle InvalidEventHandle
GenericHandle EventHandle
The handle used to address events within a bank.
GenericHandle SourceHandle
An Event is used to control most of the eingines behavior.
EventHandle on_end
Event fired once the source is finished, not called when there's no source.
SourceHandle source
Handle to a source.
Sample gain
Volume applied to triggered voice.
@ random
triggers one random chained_events event
@ emit
Emits an event to the EventCallback defined in the engine config.
@ start
Starts a source if defined and every Event in chained_events.
@ stop
Stops a source if defined and stops every voice started from a event in chained_events.
bool attenuate
whether distance is taken into consideration
NameString name
Name for debugging.
MixerHandle mixer
Mixer the source gets written to.
bool force_mixer
Prevents overriding the mixer from chained events or fireEvent.
enum vae::core::Event::Action action
Event()
TODO this isn't exactly pod style but the arrays need to be initialized properly since 0 is a valid e...
bool HRTF
Listener and event has to have hrtf set.
EventHandle chained_events[StaticConfig::MaxChainedEvents]
Events called when the source starts playing.
bool critical
wheather the voice can be killer
bool spatial
no spatial rendering at all
static constexpr MixerHandle MasterMixerHandle
This is the master mixer for a bank.