Example #1
0
 private void playSong(Song song)
 {
     if (asleep)
         return;
     waiting = false;
     gStreamer.Play(CacheDirectory + "/" + song.SongID + ".mp3");
     if (playlistPosition > 0) {
         string previousSongPath = CacheDirectory + "/" + playlist[playlistPosition - 1].SongID + ".mp3";
         if (File.Exists(previousSongPath))
             File.Delete(previousSongPath);
     }
     SongEventHandler playingHandler = PlayingSong;
     if(playingHandler != null)
         playingHandler(this, song);
 }
Example #2
0
 private static void player_SongRatingChanged(object sender, Song song)
 {
     mainForm.ThumbsUp(song.ThumbsUp);
 }