|
Saga
Saga Game Engine
|
Component for emitting sound events. More...
#include <audioEmitter.h>
Public Member Functions | |
| AudioEmitter () | |
| Construct a new Audio Emitter object. | |
| AudioEmitter (std::string eventName, bool playOnAwake=false, bool preload=false) | |
| Construct a new Audio Emitter object. | |
Public Attributes | |
| std::string | eventName |
| name of the event. Typically "event:/eventName". | |
| bool | playOnAwake |
| whether this sound should play as soon as the gameworld is awoken. | |
| bool | preload |
| whether we should preload the sample data for the sound so that playing it is instantaneous. Do not change this value throughout execution of the program. | |
| AudioEventInstance | audioInstance |
| an event instance representing the sound. When the emitter is not playing any sound, this should be nullptr. | |
| bool | is3D |
| determines if the sound event is 3D. | |
Component for emitting sound events.
| Saga::AudioEmitter::AudioEmitter | ( | ) |
Construct a new Audio Emitter object.
| Saga::AudioEmitter::AudioEmitter | ( | std::string | eventName, |
| bool | playOnAwake = false, |
||
| bool | preload = false |
||
| ) |
Construct a new Audio Emitter object.
| eventName | name of the event. |
| playOnAwake | whether the event should play on awake. |
| preload | whether to preload sample data for the event. |
| AudioEventInstance Saga::AudioEmitter::audioInstance |
an event instance representing the sound. When the emitter is not playing any sound, this should be nullptr.
| std::string Saga::AudioEmitter::eventName |
name of the event. Typically "event:/eventName".
| bool Saga::AudioEmitter::is3D |
determines if the sound event is 3D.
| bool Saga::AudioEmitter::playOnAwake |
whether this sound should play as soon as the gameworld is awoken.
| bool Saga::AudioEmitter::preload |
whether we should preload the sample data for the sound so that playing it is instantaneous. Do not change this value throughout execution of the program.