Skip to content

Commit

Permalink
Merge pull request #6 from hiroxpepe/issue/5
Browse files Browse the repository at this point in the history
fix: looping a song correctly.
  • Loading branch information
hiroxpepe authored Feb 23, 2021
2 parents 9483cf8 + 2bbc9a0 commit 73ca819
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions MidiPlayer.Activity/MainActivity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ protected override void OnCreate(Bundle savedInstanceState) {
Synth.OnEnd += () => {
Log.Info("OnEnd called.");
if (!playList.Ready) {
stopSong();
playSong();
Synth.Stop();
Synth.Start();
} else {
stopSong();
Synth.Stop();
Synth.MidiFilePath = playList.Next;
playSong();
Synth.Start();
}
};
}
Expand Down

0 comments on commit 73ca819

Please sign in to comment.