|
RhythmGame 1.4.3
|
A sound that plays multiple underlying sounds simultaneously. More...
#include <MultiSound.h>


Public Member Functions | |
| MultiSound (std::vector< std::shared_ptr< Sound > > sounds) | |
| void | play () override |
| Plays the sound. | |
| void | stop () override |
| Stops the sound. | |
| void | setVolume (float volume) override |
| Sets the volume of the sound. | |
| auto | isPlaying () const -> bool override |
| Is the sound playing right now? | |
| auto | getVolume () const -> float override |
| Gets the volume of the sound. | |
Public Member Functions inherited from sounds::Sound | |
| virtual | ~Sound ()=default |
A sound that plays multiple underlying sounds simultaneously.
Used for bmson note fusion: when notes from different sound channels share the same (x, y) position, their slices are combined into a single MultiSound. Playing this sound plays all of them at once.
|
explicit |
|
overridevirtual |
Gets the volume of the sound.
Implements sounds::Sound.
|
overridevirtual |
Is the sound playing right now?
Implements sounds::Sound.
|
overridevirtual |
Plays the sound.
This does not block, obviously. Make sure the sound object stays alive.
Implements sounds::Sound.
|
overridevirtual |
Sets the volume of the sound.
| volume | The volume. 1 is normal, 0 is silent, 2 is twice as loud. |
Implements sounds::Sound.
|
overridevirtual |