Class · aurore

aurore::AudioPlayer

On this page
aurore/core/audio.hpp
#include <aurore/core/audio.hpp>

class aurore::AudioPlayer

Constructors 1

virtual ~AudioPlayer()

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:55
virtual 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:65

Read from Aurore's headers by Doxygen at each build · library/include