コード例 #1
0
ファイル: ChimneyMPDEvent.cs プロジェクト: opengd/Chimney
        public PlaylistEventArgs(List<SongTag> playlist, List<SongTag> playlistchanges, Status status, SongTag currentsong)
        {
            this.playlist = playlist;
            this.playlistchanges = playlistchanges;
            this.status = status;
            this.currentsong = currentsong;

        }
コード例 #2
0
ファイル: SongTag.cs プロジェクト: opengd/Chimney
        public static async Task<SongTag> GetSongTagFromFile(StorageFile storageFile)
        {
            SongTag songTag = new SongTag();
            Windows.Storage.FileProperties.MusicProperties mp = await storageFile.Properties.GetMusicPropertiesAsync();
            //songTag.file = seekpath.Item2 + "/" + file.Name;
            songTag.Title = mp.Title;
            songTag.Artist = mp.Artist;
            songTag.Album = mp.Album;
            songTag.AlbumArtist = mp.AlbumArtist;
            songTag.Date = mp.Year.ToString();
            songTag.Time = Convert.ToInt32(mp.Duration.TotalSeconds);
            if (mp.Genre.Count > 0) songTag.Genre = mp.Genre.First<string>();

            return songTag;
        }
コード例 #3
0
ファイル: ChimneyMPDEvent.cs プロジェクト: opengd/Chimney
 public PlayerEventArgs(SongTag currentsong, Status status)
 {
     this.currentsong = currentsong;
     this.status = status;
 }