Skip to content

Commit

Permalink
MAJ - Loop the music
Browse files Browse the repository at this point in the history
  • Loading branch information
deadbaed committed Jun 14, 2020
1 parent ba5311a commit e74dc53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Music/Music.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ int Music::Play(std::string filepath)
if (!this->_music.openFromFile(filepath.c_str()))
throw MusicError("Can't open music file");
this->_path_music = filepath;
this->_music.setLoop(true);
this->_music.play();
this->_music.setVolume(this->_context.volume_music);
return (0);
Expand Down

0 comments on commit e74dc53

Please sign in to comment.