VAE - Virtual Audio Engine 1
Small Data Driven Audio Engine
vae::core::Emitter Struct Reference

Allows placement of a Sound in 3D. More...

#include <vae_emitter.hpp>

Collaboration diagram for vae::core::Emitter:

Public Attributes

Vec3 position = { 0, 0, 0 }
 
Real spread = 0.5
 The width of the source, 1 means all speaker will play. More...
 
Real maxDist = 100
 if event is valid, it will be emitted once the emitter is closer More...
 
EventHandle event
 Will be triggerd. More...
 
BankHandle bank
 Needed to identify event. More...
 
bool autoplaying: 1
 whether the event was already triggered More...
 

Detailed Description

Allows placement of a Sound in 3D.

Also can trigger a event if a listener is closer than maxDist.

Definition at line 10 of file vae_emitter.hpp.

Member Data Documentation

◆ autoplaying

bool vae::core::Emitter::autoplaying

whether the event was already triggered

Definition at line 16 of file vae_emitter.hpp.

◆ bank

BankHandle vae::core::Emitter::bank

Needed to identify event.

Definition at line 15 of file vae_emitter.hpp.

◆ event

EventHandle vae::core::Emitter::event

Will be triggerd.

Definition at line 14 of file vae_emitter.hpp.

◆ maxDist

Real vae::core::Emitter::maxDist = 100

if event is valid, it will be emitted once the emitter is closer

Definition at line 13 of file vae_emitter.hpp.

◆ position

Vec3 vae::core::Emitter::position = { 0, 0, 0 }

Definition at line 11 of file vae_emitter.hpp.

◆ spread

Real vae::core::Emitter::spread = 0.5

The width of the source, 1 means all speaker will play.

Definition at line 12 of file vae_emitter.hpp.


The documentation for this struct was generated from the following file: