3#include "core/reflect.h"
5#include "resource/asset/audio_clip_asset.h"
A sound emitter: one clip, how loud, and where it is heard from.
Definition audio_source.h:17
bool started
Whether playOnStart has been honoured; session state.
Definition audio_source.h:50
bool spatial
Whether the source is positioned in the world or mixed flat at constant volume.
Definition audio_source.h:27
bool playOnStart
Start playing on the first frame the simulation runs.
Definition audio_source.h:35
float volume
Linear gain, multiplied into the listener's own.
Definition audio_source.h:20
float maxDistance
Distance at which the source is inaudible.
Definition audio_source.h:47
bool playing
Session state.
Definition audio_source.h:49
bool loop
Restart at the end instead of finishing.
Definition audio_source.h:22
float pitch
Playback rate multiplier; also shifts the pitch. Must be > 0.
Definition audio_source.h:21
float minDistance
Radius inside which the source is at full volume: the size of the emitter.
Definition audio_source.h:40