示例#1
0
 public bool LoadID3(TID3Version Id3Version, ref TID3Info Info)
 {
     ZPlay.TID3Info_Internal pId3Info = new ZPlay.TID3Info_Internal();
     if (ZPlay.zplay_LoadID3W(this.objptr, Convert.ToInt32((int)Id3Version), ref pId3Info) != 1)
     {
         return(false);
     }
     Info.Album   = Marshal.PtrToStringUni(pId3Info.Album);
     Info.Artist  = Marshal.PtrToStringUni(pId3Info.Artist);
     Info.Comment = Marshal.PtrToStringUni(pId3Info.Comment);
     Info.Genre   = Marshal.PtrToStringUni(pId3Info.Genre);
     Info.Title   = Marshal.PtrToStringUni(pId3Info.Title);
     Info.Track   = Marshal.PtrToStringUni(pId3Info.Track);
     Info.Year    = Marshal.PtrToStringUni(pId3Info.Year);
     return(true);
 }
示例#2
0
 private static extern int zplay_LoadFileID3W(
     uint objptr,
     [MarshalAs(UnmanagedType.LPWStr)] string pchFileName,
     int nFormat,
     int nId3Version,
     ref ZPlay.TID3Info_Internal pId3Info);
示例#3
0
 private static extern int zplay_LoadID3W(
     uint objptr,
     int nId3Version,
     ref ZPlay.TID3Info_Internal pId3Info);