Class · aurore
aurore::AudioPlayer
On this page
#include <aurore/core/audio.hpp>
class aurore::AudioPlayerDerived by
Constructors 1
Functions 2
virtual bool load(enum Sound sound) =0 Preemptively loads the given sound so that it's ready to be played when needed.
Returns a boolean indicating if the sound has been loaded or not.
audio.hpp:55virtual bool play(enum Sound sound, float pitch = 1) =0 Plays the given sound.
The AudioPlayer should not assume that the sound has been loaded already, and must load it if needed.
Returns a boolean indicating if the sound has been played or not.
audio.hpp:65Read from Aurore's headers by Doxygen at each build · library/include