Plugin coding: get filename and metadata of current song

This forum is for questions / discussions regarding development of addons / tweaks for MediaMonkey.

Moderator: Gurus

Zahl

Plugin coding: get filename and metadata of current song

Post by Zahl » Thu May 06, 2010 10:51 am

Hi there,

I'm just trying to make a winamp5 gen-plugin work with MM.
The dev wiki says that work is being done on support for unicode to make MM more compatible
with winamp5 plugins.
So I'd like to know how much progress there is on this issue, or how else I can get the filename,
artist and title of the currently playing song from within a plugin (in unicode).
Currently for winamp I'm using

Code: Select all

   wchar_t *file = (wchar_t*)SendMessage(plugin.hwndParent, WM_WA_IPC, 0, IPC_GET_PLAYING_FILENAME);
   // Get Metadata
   extendedFileInfoStructW artist;
   // Artist
   artist.filename = file;
   artist.metadata = L"Artist";
   artist.ret = (wchar_t*)malloc(300);
   artist.retlen = 150;
   SendMessage(plugin.hwndParent, WM_WA_IPC, (int)&artist, IPC_GET_EXTENDED_FILE_INFOW);
Both calls are apparently not implemented in MM3.

Any help would be appreciated! :)

Peke
Posts: 10933
Joined: Tue Jun 10, 2003 7:21 pm
Location: Serbia
Contact:

Re: Plugin coding: get filename and metadata of current song

Post by Peke » Thu May 06, 2010 5:18 pm

You are right Winamp MSG call 3026 (IPC_GET_EXTENDED_FILE_INFOW) is not yet supported, but it is on our to do list.

If you can get me working example (with clear show of return structure that will be received from MM) of plugin where I can test this with MM 4.0 I'll try to make it work.

BTW in all of my general plugins I directly connect to MM COM and retrieve data from there.
Best regards,
Pavle
MM Core Developer and Admin of free MediaMonkey extensions Hosting
Image
Image
How to add Images to forum

Post Reply