#include <NormalSound.h>
◆ NormalSound()
◆ ~NormalSound()
| sounds::NormalSound::~NormalSound |
( |
| ) |
|
|
override |
◆ getBuffer()
| auto sounds::NormalSound::getBuffer |
( |
| ) |
const -> const std::shared_ptr<const SoundBuffer>& |
◆ getVolume()
| auto sounds::NormalSound::getVolume |
( |
| ) |
const -> float |
|
overridevirtual |
Gets the volume of the sound.
- Returns
- The volume. 1 is normal, 0 is silent, 2 is twice as loud.
Implements sounds::Sound.
◆ isPlaying()
| auto sounds::NormalSound::isPlaying |
( |
| ) |
const -> bool |
|
overridevirtual |
◆ play()
| void sounds::NormalSound::play |
( |
| ) |
|
|
overridevirtual |
Plays the sound.
This does not block, obviously. Make sure the sound object stays alive.
Implements sounds::Sound.
◆ setVolume()
| void sounds::NormalSound::setVolume |
( |
float |
volume | ) |
|
|
overridevirtual |
Sets the volume of the sound.
- Parameters
-
| volume | The volume. 1 is normal, 0 is silent, 2 is twice as loud. |
Implements sounds::Sound.
◆ stop()
| void sounds::NormalSound::stop |
( |
| ) |
|
|
overridevirtual |
Stops the sound.
Does not block. The sound can be played again.
Implements sounds::Sound.
The documentation for this class was generated from the following files: