Thanks, I have no idea how I missed that.
I can't find where AudioGenie supports cover art, but I think I'm going to try
MediaInfo instead, since I'm only going to be reading, and MediaInfo isn't nagware.
I can't seem to a valid jpg image though. I've got my test MP3, and I run "mediainfo song.mp3", and it says that 'Yes', it has album art, and it's an 'image/jpeg'.
I'm really a novice when it comes to ANSI/Unicode, tags, DLLs, and all this, but I think I might be on the right track. Here's my code so far:
Code:
PathToMediaInfoDLL := "C:\Bry\MediaInfo\MediaInfo.dll"
PathToMp3File := "C:\Bry\MediaInfo\Song.mp3"
hModule := DllCall("LoadLibrary", "str", PathToMediaInfoDLL)
handle := dllcall("mediainfo\MediaInfo_New")
GetUnicodeString(PathToMp3FileUni,PathToMp3File)
dllcall("mediainfo\MediaInfo_Open", "UInt", handle, "str", PathTomp3FileUni)
Info_GetPtr:=DllCall("mediainfo\MediaInfoA_Get", "UInt", handle, "int", 0, "int", 0, "str", "Cover_Data", "int", 1, "int", 0)
Info_Get := ExtractData(Info_GetPtr)
FileAppend, %Info_Get%,Test.jpeg
It seems to run without a problem, but the JPG can't be opened. Am I just missing something blatantly obvious here?
EDIT: Durr, I feel dumb. The image is stored in Base64. I got a Base64 Decoder
here, decoded the file, and it's now a perfect JPEG cover art. I would love to use a Decoder in AHK, but I tried using one that I found on the forum by Laszlo, and it took like literally 5 minutes to process the entire file. So I think that might be it.
Well, problem solved, I guess. The only annoying thing is that it takes a few seconds to extract the Cover_data, and since I kind of plan on doing it for dozens or hundreds of albums, I might have to rethink my plan.
-Pie