VAE - Virtual Audio Engine 1
Small Data Driven Audio Engine
|
An Event is used to control most of the eingines behavior. More...
#include <vae_event.hpp>
Public Types | |
enum class | Action { start = 0 , stop , emit , random } |
Public Member Functions | |
Event () | |
TODO this isn't exactly pod style but the arrays need to be initialized properly since 0 is a valid event handle. More... | |
Public Attributes | |
enum vae::core::Event::Action | action |
bool | force_mixer: 1 |
Prevents overriding the mixer from chained events or fireEvent. More... | |
bool | loop: 1 |
gapless looping More... | |
bool | HRTF: 1 |
Listener and event has to have hrtf set. More... | |
bool | spatial: 1 |
no spatial rendering at all More... | |
bool | attenuate: 1 |
whether distance is taken into consideration More... | |
bool | critical: 1 |
wheather the voice can be killer More... | |
MixerHandle | mixer = Mixer::MasterMixerHandle |
Mixer the source gets written to. More... | |
SourceHandle | source = InvalidSourceHandle |
Handle to a source. More... | |
EventHandle | id = InvalidEventHandle |
Own id. More... | |
Sample | gain |
Volume applied to triggered voice. More... | |
EventHandle | chained_events [StaticConfig::MaxChainedEvents] |
Events called when the source starts playing. More... | |
EventHandle | on_end |
Event fired once the source is finished, not called when there's no source. More... | |
NameString | name |
Name for debugging. More... | |
An Event is used to control most of the eingines behavior.
Definition at line 14 of file vae_event.hpp.
|
strong |
Enumerator | |
---|---|
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. |
emit | Emits an event to the EventCallback defined in the engine config. |
random | triggers one random chained_events event |
Definition at line 15 of file vae_event.hpp.
|
inline |
TODO this isn't exactly pod style but the arrays need to be initialized properly since 0 is a valid event handle.
Definition at line 40 of file vae_event.hpp.
enum vae::core::Event::Action vae::core::Event::action |
bool vae::core::Event::attenuate |
whether distance is taken into consideration
Definition at line 25 of file vae_event.hpp.
EventHandle vae::core::Event::chained_events[StaticConfig::MaxChainedEvents] |
Events called when the source starts playing.
Definition at line 32 of file vae_event.hpp.
bool vae::core::Event::critical |
wheather the voice can be killer
Definition at line 26 of file vae_event.hpp.
bool vae::core::Event::force_mixer |
Prevents overriding the mixer from chained events or fireEvent.
Definition at line 21 of file vae_event.hpp.
Sample vae::core::Event::gain |
Volume applied to triggered voice.
Definition at line 31 of file vae_event.hpp.
bool vae::core::Event::HRTF |
Listener and event has to have hrtf set.
Definition at line 23 of file vae_event.hpp.
EventHandle vae::core::Event::id = InvalidEventHandle |
Own id.
Definition at line 30 of file vae_event.hpp.
bool vae::core::Event::loop |
gapless looping
Definition at line 22 of file vae_event.hpp.
MixerHandle vae::core::Event::mixer = Mixer::MasterMixerHandle |
Mixer the source gets written to.
Definition at line 28 of file vae_event.hpp.
NameString vae::core::Event::name |
Name for debugging.
Definition at line 34 of file vae_event.hpp.
EventHandle vae::core::Event::on_end |
Event fired once the source is finished, not called when there's no source.
Definition at line 33 of file vae_event.hpp.
SourceHandle vae::core::Event::source = InvalidSourceHandle |
Handle to a source.
Definition at line 29 of file vae_event.hpp.
bool vae::core::Event::spatial |
no spatial rendering at all
Definition at line 24 of file vae_event.hpp.