Get Title/Artist as Unicode

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

Moderator: Gurus

Get Title/Artist as Unicode

Postby HuoRen » Sat May 05, 2012 8:16 pm

Hey, I'm trying to write a plugin (not script) using the Winamp API. The Wiki states that MM3+ should support Unicode functionality of Winamp5 to some extent.
I also see that there is a last.fm plugin for MM that, as the wiki states, supports Unicode. So I take it that it's somehow possible to do this from within a plugin. The question is: How.
Doing it the Winamp5 way does not work:

Code: Select all
#include "wa_ipc.h"
...

extendedFileInfoStructW artist;

artist.filename = lastfile; // lastfile being a wchar_t* containing the full path of a file in the playlist
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);
// artist.ret is now a wchar_t array containing the artist in unicode, but in MM it does not work


I assume IPC_GET_EXTENDED_FILE_INFOW is not supported by MM.
So how is it done right? How is the last.fm Plugin written? Not for the winamp api? Just from the naming of the plugin I would assume it has to be....
HuoRen
 
Posts: 2
Joined: Sat May 05, 2012 8:08 pm

Return to Addons developer forum

Who is online

Users browsing this forum: No registered users and 3 guests