Plugin coding: get filename and metadata of current song

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

Moderators: Gurus, Addon Administrators

Zahl

Plugin coding: get filename and metadata of current song

Post by Zahl »

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: 17493
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

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

Post by Peke »

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,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
Image
How to attach PICTURE/SCREENSHOTS to forum posts
Post Reply