3#include "core/reflect.h"
5#include "resource/asset/audio_clip_asset.h"
12enum class AudioRolloff {
58 AudioRolloff
rolloff = AudioRolloff::Linear;
73VKM_ENUM_NAMES(::Vkm::Engine::AudioRolloff,
"Linear",
"Inverse")
75VKM_REFLECT_BEGIN(::Vkm::Engine::AudioSource)
A sound emitter: one clip, how loud, and where it is heard from.
Definition audio_source.h:26
bool started
Whether playOnStart has been honoured; session state.
Definition audio_source.h:68
AudioRolloff rolloff
How it fades between the two distances.
Definition audio_source.h:58
bool spatial
Whether the source is positioned in the world or mixed flat at constant volume.
Definition audio_source.h:36
int priority
Which voice gives way when too many sounds play (AudioDevice::play).
Definition audio_source.h:65
bool playOnStart
Start playing on the first frame the simulation runs.
Definition audio_source.h:44
float volume
Linear gain, multiplied into the listener's own.
Definition audio_source.h:29
float maxDistance
Distance at which the source is inaudible.
Definition audio_source.h:56
bool playing
Session state.
Definition audio_source.h:67
bool loop
Restart at the end instead of finishing.
Definition audio_source.h:31
float pitch
Playback rate multiplier; also shifts the pitch. Must be > 0.
Definition audio_source.h:30
float minDistance
Radius inside which the source is at full volume: the size of the emitter.
Definition audio_source.h:49