Saga
Saga Game Engine
Loading...
Searching...
No Matches
audioEmitter.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4#include "../Audio/audioEngine.h"
5
6namespace Saga {
7
14 std::string eventName;
16 bool preload;
17
18 // these are values you won't need to set
20 bool is3D;
21
26
34 AudioEmitter(std::string eventName, bool playOnAwake = false, bool preload = false);
35};
36
37
38
39}; // namespace Saga
FMOD_STUDIO_EVENTINSTANCE * AudioEventInstance
An audio instance equivalent to an instance of a sound. Can be start and stop. For correct 3D positio...
Definition: audioEngine.h:34
Definition: app.cpp:8
Component for emitting sound events.
Definition: audioEmitter.h:13
AudioEmitter()
Construct a new Audio Emitter object.
Definition: audioemitter.cpp:4
std::string eventName
name of the event. Typically "event:/eventName".
Definition: audioEmitter.h:14
bool preload
whether we should preload the sample data for the sound so that playing it is instantaneous....
Definition: audioEmitter.h:16
bool is3D
determines if the sound event is 3D.
Definition: audioEmitter.h:20
AudioEventInstance audioInstance
an event instance representing the sound. When the emitter is not playing any sound,...
Definition: audioEmitter.h:19
bool playOnAwake
whether this sound should play as soon as the gameworld is awoken.
Definition: audioEmitter.h:15