Page 1 of 1

Winamp API and Unicode characters [#8719]

Posted: Thu Nov 10, 2011 3:52 am
by poiru
Hey. I'm a developer of Rainmeter, which, among other things, includes a plugin to communicate with MediaMonkey through the Winamp API. A user reported an issue where the plugin would not display full information for tracks playing in MediaMonkey when the path to the track contains Unicode characters.

The issue is due to IPC_GETPLAYLISTFILE providing a path with (some) messed up Unicode characters. For example, the actual path of the example file provided by the user is:
D:\03 - Hobo Blues Band - A vadászok gyülekezőj

IPC_GETPLAYLISTFILE, however, returns a pointer to the following path (ő -> o):
D:\03 - Hobo Blues Band - A vadászok gyülekezoj.mp3

I noticed a few other threads with similar issues/requests. Is there any plan to implement wide Winamp API messages such as IPC_GET_PLAYING_FILENAME?

Re: Winamp API and Unicode characters

Posted: Wed Nov 16, 2011 7:22 am
by baguette
Yes, it looks like the unicode version of the Winamp API (IPC_GETPLAYLISTFILEW, IPC_GET_EXTENDED_FILE_INFOW, IPC_ENQUEUEFILEW etc.) isn't implemented.
I reckon this will cause problems with lots of newer Winamp plugins.

Re: Winamp API and Unicode characters

Posted: Wed Nov 16, 2011 7:28 pm
by Peke
Yes, MediaMonkey support Winamp API 2.95 and parts of API til I think 5.24.

Better compatibility with newest Winamp plugins is on our to do list but always at lower priority than upgrading/enhancing MM own API.

I would really like that some of Winamp API experts do cuts and crosses with MM and help us in better compatibility especially as Winamp compatibility is fully usable in even MM FREE version.

Only exclusion is Winamp Library which is not planed to support. Although no one gave us any solid reason to include and what can't be made for MM Library using MM API.

As always we are open to suggestions.

Re: Winamp API and Unicode characters

Posted: Wed Nov 16, 2011 7:48 pm
by baguette
The unicode messages (IPC_*W) should be quite easy to add - just duplicate your existing code minus the string conversion (I'm assuming MM uses unicode internally).

Re: Winamp API and Unicode characters

Posted: Fri Nov 18, 2011 4:54 am
by jiri
Added as http://www.ventismedia.com/mantis/view.php?id=8719, feel free to suggest messages that should be processed by MM.

Thanks,
Jiri

Re: Winamp API and Unicode characters

Posted: Fri Nov 18, 2011 6:20 am
by baguette
I think these are the relevant messages:

IPC_ENQUEUEFILEW
IPC_GETPLAYLISTFILEW
IPC_GETPLAYLISTTITLEW
IPC_CHANGECURRENTFILEW
IPC_GET_BASIC_FILE_INFOW
IPC_PLAYING_FILEW
IPC_GET_EXTENDED_FILE_INFOW

They're all defined in wa_ipc.h

Re: Winamp API and Unicode characters

Posted: Sat Nov 26, 2011 8:56 am
by poiru
baguette wrote:I think these are the relevant messages:

IPC_ENQUEUEFILEW
IPC_GETPLAYLISTFILEW
IPC_GETPLAYLISTTITLEW
IPC_CHANGECURRENTFILEW
IPC_GET_BASIC_FILE_INFOW
IPC_PLAYING_FILEW
IPC_GET_EXTENDED_FILE_INFOW

They're all defined in wa_ipc.h
For me, the most important would be:
IPC_GET_PLAYING_FILENAME
IPC_GET_PLAYING_TITLE

Re: Winamp API and Unicode characters [#8719]

Posted: Tue Jan 03, 2012 8:40 am
by baguette
Any updates on this?

Re: Winamp API and Unicode characters [#8719]

Posted: Tue Jan 03, 2012 3:15 pm
by Lowlander
baguette wrote:Any updates on this?
See: http://www.ventismedia.com/mantis/view.php?id=8719

Re: Winamp API and Unicode characters [#8719]

Posted: Mon May 07, 2012 11:41 pm
by HuoRen
This is relevant to my interests.

+1 for IPC_*W

Re: Winamp API and Unicode characters [#8719]

Posted: Wed Jul 04, 2012 3:55 pm
by SerMe
Seriously.. This is likely a trivial change. Ask one of your devs to devote 30min to this.

Re: Winamp API and Unicode characters [#8719]

Posted: Fri May 17, 2013 4:06 am
by unicode
Any news on this?

Re: Winamp API and Unicode characters [#8719]

Posted: Thu Aug 01, 2013 9:27 pm
by Glaucus
For the amount of time it would take to add this feature I can't believe it's not done yet. Come on, this is 2013, UNICODE is pretty much standard, why stick with a charset dating back to the 1960s? PLEASE add this feature, filename in wchar_t would be a great start, but I don't see why the rest would be any less trivial.

Re: Winamp API and Unicode characters [#8719]

Posted: Fri Mar 24, 2017 12:21 am
by Fifouxxe
It's 2017 and still not fixed :cry:

Re: Winamp API and Unicode characters [#8719]

Posted: Sat May 06, 2017 9:27 pm
by Peke
Winamp API is obsolete, there is far more easier/better way to access data from MMW

Also Winamp is no more (do not want to start fight, but it is just my point of view).