10 #include <SFML/Audio.hpp> 30 void setLabel(std::string new_label);
37 void play(
bool loop=
true);
std::string m_label
Text label to identify music.
Definition: Music.h:18
void operator=(Music const &)
SFML doesn't allow music assignment.
A 2-d bounding box.
Definition: Box.h:10
int loadMusic(std::string filename)
Associate music buffer with file.
sf::Music m_music
The SFML music.
Definition: Music.h:17
sf::Music * getMusic()
Return pointer to SFML music.
void play(bool loop=true)
Play music.
void setLabel(std::string new_label)
Set label associated with music.
std::string getLabel() const
Get label associated with music.