I'm in the middle of a plugin update and I need to know if it's at all possible to force/get/coax Winamp into retrieving the actual title/length of a file as it would be displayed in the playlist editor before it's been loaded into the playlist editor.
I searched the entire wa_ipc.h header for a solution. I only found two in my initial search. All the other ones that dealt with titles that I could find either only referenced hooking titles, changing titles, or getting titles already in the playlist. I could just be missing something though so I'm asking.
IPC_GET_BASIC_FILE_INFO <-- Didn't work, it just gave me NULL[title]/-1[length] for files not in the playlist yet.
IPC_GET_EXTENDED_FILE_INFO <--I couldn't any make sense of this one. What do I pass to the struct other than the full path and filename? If I do pass it the correct stuff to get it to work, would it still only work on files already in the playlist?
The reason why I need to get the title/length before putting it into the playlist editor is because I'm trying to manage playlists outside the pled (and inside the plugin only) and temporarily putting a file into the pled just to retrieve the title/length is not workable nor reliable at the moment. As a playlist file (M3U, PLS, or whatever) may or may not contain full meta info I would rather find an alternate source for the needed information instead of just skipping an otherwise valid playlist entry just because the info wasn't there.
And since Winamp would be the ultimate authority on what it would look like in the pled anyways I would like Winamp to tell me instead of trying to read the file manually (and because I don't know HOW to read every single stink'n kind of media file type on the face of the planet like Winamp basically does!
)
I searched the forums but the search results gave me pages and pages of stuff that was not relevant to my current question.
If this question was already answered I apologize in advance and please post a link to the answer.
As my avatar suggests, I've been banging my head on my desk for a while now. It's starting to hurt.
Thanks in advance
I searched the entire wa_ipc.h header for a solution. I only found two in my initial search. All the other ones that dealt with titles that I could find either only referenced hooking titles, changing titles, or getting titles already in the playlist. I could just be missing something though so I'm asking.
IPC_GET_BASIC_FILE_INFO <-- Didn't work, it just gave me NULL[title]/-1[length] for files not in the playlist yet.
IPC_GET_EXTENDED_FILE_INFO <--I couldn't any make sense of this one. What do I pass to the struct other than the full path and filename? If I do pass it the correct stuff to get it to work, would it still only work on files already in the playlist?
The reason why I need to get the title/length before putting it into the playlist editor is because I'm trying to manage playlists outside the pled (and inside the plugin only) and temporarily putting a file into the pled just to retrieve the title/length is not workable nor reliable at the moment. As a playlist file (M3U, PLS, or whatever) may or may not contain full meta info I would rather find an alternate source for the needed information instead of just skipping an otherwise valid playlist entry just because the info wasn't there.


I searched the forums but the search results gave me pages and pages of stuff that was not relevant to my current question.
If this question was already answered I apologize in advance and please post a link to the answer.
As my avatar suggests, I've been banging my head on my desk for a while now. It's starting to hurt.

Thanks in advance
1. Sorry - no matches. Please try some different terms.
The following words are either very common, too long, or too short and were not included in your search : IPC_GET_EXTENDED_FILE_INFO
The following words are either very common, too long, or too short and were not included in your search : IPC_GET_EXTENDED_FILE_INFO
Comment