コード例 #1
0
ファイル: Player.cs プロジェクト: bsutliffe/RaspberryPandora
 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);
 }
コード例 #2
0
ファイル: Program.cs プロジェクト: bsutliffe/RaspberryPandora
 private static void player_SongRatingChanged(object sender, Song song)
 {
     mainForm.ThumbsUp(song.ThumbsUp);
 }