2#include <audio/audioplayable.h>
3#include <entities/spatial.h>
18 void onExit()
override;
This class is the Playable instance of AudioClip. Provides various playback functions.
Definition audioplayable.h:14
This class represents an audio source in the game world.
Definition audiosource.h:9
void setVolume(float volume)
Set volume level of playback.
MAudioSource(std::string clipPath, bool loop, bool autoStart)
Construnctor.
void stop()
Pause playback and reset to the begining.
void play()
Plays audio clip.
void setIsLooped(bool loop)
Set playback loop status.
void setPlaybackSpeed(float playbackSpeed)
Set playback speed.
void pause()
Pause playback.
Spatial Entity is the base entity for all types present in scene. This entity keeps track of spatial ...
Definition spatial.h:15