Skip to content

Commit

Permalink
More audio fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerhard Stein committed Feb 9, 2018
1 parent 39543a5 commit 2bba26a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/sdl/audio/music/CMusic.cpp
Expand Up @@ -39,6 +39,8 @@ bool CMusic::loadTrack(const int track)
bool CMusic::load(const std::string &musicfile)
{

Mix_HaltMusic();

if(mpMixMusic)
{
Mix_FreeMusic(mpMixMusic);
Expand Down Expand Up @@ -242,8 +244,12 @@ bool CMusic::LoadfromMusicTable(const std::string &gamepath,
if( load(filename) )
{
play();
return true;
}
else
{
return false;
}
return true;
}
Tablefile.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
}
Expand Down

0 comments on commit 2bba26a

Please sign in to comment.