5#ifndef RHYTHMGAME_NORMALSOUND_H
6#define RHYTHMGAME_NORMALSOUND_H
16 std::shared_ptr<const SoundBuffer> buffer;
17 std::unique_ptr<ma_audio_buffer> audioBuffer =
18 std::make_unique<ma_audio_buffer>();
19 std::unique_ptr<ma_sound> sound = std::make_unique<ma_sound>();
24 auto getBuffer()
const ->
const std::shared_ptr<const SoundBuffer>&;
Definition AudioEngine.h:16
Definition NormalSound.h:14
void setVolume(float volume) override
Sets the volume of the sound.
Definition NormalSound.cpp:73
void stop() override
Stops the sound.
Definition NormalSound.cpp:61
auto getVolume() const -> float override
Gets the volume of the sound.
Definition NormalSound.cpp:79
~NormalSound() override
Definition NormalSound.cpp:43
auto isPlaying() const -> bool override
Is the sound playing right now?
Definition NormalSound.cpp:67
auto getBuffer() const -> const std::shared_ptr< const SoundBuffer > &
Definition NormalSound.cpp:85
void play() override
Plays the sound.
Definition NormalSound.cpp:55
A sound that can be played.
Definition Sound.h:25
The namespace for all sound related classes.
Definition HitRules.h:16