10#include <SFML/Audio.hpp>
39 void play(
bool loop=
false);
void setLabel(std::string new_label)
Set label associated with sound.
sf::SoundBuffer m_sound_buffer
SFML sound buffer associated with sound.
Definition: Sound.h:19
int loadSound(std::string filename)
Load sound buffer from file.
sf::Sound getSound() const
Return SFML sound.
sf::Sound m_sound
SFML sound.
Definition: Sound.h:18
std::string getLabel() const
Get label associated with sound.
std::string m_label
Text label to identify sound.
Definition: Sound.h:21
void play(bool loop=false)
Play sound.
An animation for a sprite.
Definition: Animation.h:15