|
Aurore
A Switch-like interface for your app, on every screen
|
#include <aurore/core/audio.hpp>
Public Member Functions | |
| virtual | ~AudioPlayer () |
| virtual bool | load (enum Sound sound)=0 |
| virtual bool | play (enum Sound sound, float pitch=1)=0 |
|
inlinevirtual |
|
pure virtual |
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.
Implemented in aurore::NullAudioPlayer.
|
pure virtual |
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.
Implemented in aurore::NullAudioPlayer.