private void PlayMusic(ISoundTrack track) { if (track.Equals(currentTrack) && MediaPlayer.State != MediaState.Stopped) { return; } MediaPlayer.Stop(); track.Play(); MediaPlayer.IsRepeating = true; currentTrack = track; }
public void Add(ISoundTrack track) { mTracks.Add (track); }