public MusicInfo(TID3Info info) { _id = Guid.NewGuid().ToString("N"); _path = ""; _title = info.Title; _argist = info.Artist; _album = info.Album; _year = info.Year; _comment = info.Comment; _track = info.Track; _genre = info.Genre; }
public static MusicInfo GetMusicInfo(string path) { //读取音乐信息 TID3Info info = new TID3Info(); if (Player.LoadFileID3(path, TStreamFormat.sfAutodetect, TID3Version.id3Version2, ref info)) { return(new MusicInfo() { Id = Guid.NewGuid().ToString("N"), Title = info.Title, Path = path, }); } return(null); }
public bool LoadID3(TID3Version Id3Version, ref TID3Info Info) { if (zplay_LoadID3W(objptr, System.Convert.ToInt32((int)(Id3Version)), ref Info) == 1) { return true; } else { return false; } }
private extern static int zplay_LoadFileID3W(uint objptr, [MarshalAs(UnmanagedType.LPWStr)] string pchFileName, int nFormat, int nId3Version, ref TID3Info pId3Info);
private extern static int zplay_LoadID3W(uint objptr, int nId3Version, ref TID3Info pId3Info);
public bool LoadFileID3(string FileName, TStreamFormat Format, TID3Version Id3Version, ref TID3Info Info) { if (zplay_LoadFileID3W(objptr, FileName, System.Convert.ToInt32(Format), System.Convert.ToInt32((int)(Id3Version)), ref Info) == 1) { return true; } else { return false; } }
public MusicInfoViewModel(TID3Info info) : base(info) { }
public bool LoadFileID3(string FileName, TStreamFormat Format, TID3Version Id3Version, ref TID3Info Info);
public bool LoadID3(TID3Version Id3Version, ref TID3Info Info);