Aurore
A Switch-like interface for your app, on every screen
Loading...
Searching...
No Matches
aurore::NullAudioPlayer Class Reference

#include <aurore/core/audio.hpp>

Inheritance diagram for aurore::NullAudioPlayer:
aurore::AudioPlayer

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 ()
 

Member Function Documentation

◆ load()

bool aurore::NullAudioPlayer::load ( enum Sound  sound)
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.

◆ play()

bool aurore::NullAudioPlayer::play ( enum Sound  sound,
float  pitch 
)
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.


The documentation for this class was generated from the following file: