added setLoop in musicnode

This commit is contained in:
Lendemor 2017-09-06 10:44:55 +02:00
parent aaee7d6762
commit 1cdf643174
2 changed files with 6 additions and 0 deletions

View File

@ -31,3 +31,8 @@ void MusicNode::setPlayingOffset(int offset)
{ {
m_music.setPlayingOffset(sf::seconds(offset)); m_music.setPlayingOffset(sf::seconds(offset));
} }
void MusicNode::setLoop(bool l)
{
m_music.setLoop(l);
}

View File

@ -16,6 +16,7 @@ public:
void pause(); void pause();
void stop(); void stop();
void setPlayingOffset(int offset); void setPlayingOffset(int offset);
void setLoop(bool l);
}; };
#endif // MUSICNODE_H #endif // MUSICNODE_H