Tricky implementing taglib's APIC extracting/saving feature, but I got it. Left some TODO's on where to pick up #56

This commit is contained in:
kdeng00
2019-08-11 17:51:42 -04:00
parent 023c467a9d
commit 51d40f270d
11 changed files with 183 additions and 68 deletions
+10
View File
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Runtime.InteropServices;
using System.Text;
using Newtonsoft.Json;
@@ -21,4 +22,13 @@ namespace Icarus.Models
[JsonIgnore]
public List<Song> Songs { get; set; }
}
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
public struct CovArt
{
public int CoverArtId;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 1024)]
public string SongTitle;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 1024)]
public string ImagePath;
}
}