|
Aurore
A Switch-like interface for your app, on every screen
|
#include <aurore/core/audio.hpp>
Public Member Functions | |
| bool | load (enum Sound sound) override |
| bool | play (enum Sound sound, float pitch) override |
Public Member Functions inherited from aurore::AudioPlayer | |
| virtual | ~AudioPlayer () |
|
inlineoverridevirtual |
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.
Implements aurore::AudioPlayer.
|
inlineoverridevirtual |
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.
Implements aurore::AudioPlayer.