Winamp API and Unicode characters [#8719]

This forum is for reporting bugs in MediaMonkey for Windows 4. Note that version 4 is no longer actively maintained as it has been replaced by version 5.

Moderator: Gurus

poiru

Winamp API and Unicode characters [#8719]

Post 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?
baguette
Posts: 4
Joined: Wed Nov 16, 2011 7:18 am

Re: Winamp API and Unicode characters

Post 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.
Peke
Posts: 17457
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

Re: Winamp API and Unicode characters

Post 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.
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
baguette
Posts: 4
Joined: Wed Nov 16, 2011 7:18 am

Re: Winamp API and Unicode characters

Post 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).
jiri
Posts: 5417
Joined: Tue Aug 14, 2001 7:00 pm
Location: Czech Republic
Contact:

Re: Winamp API and Unicode characters

Post 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
baguette
Posts: 4
Joined: Wed Nov 16, 2011 7:18 am

Re: Winamp API and Unicode characters

Post 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
poiru

Re: Winamp API and Unicode characters

Post 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
baguette
Posts: 4
Joined: Wed Nov 16, 2011 7:18 am

Re: Winamp API and Unicode characters [#8719]

Post by baguette »

Any updates on this?
Lowlander
Posts: 56491
Joined: Sat Sep 06, 2003 5:53 pm
Location: MediaMonkey 5

Re: Winamp API and Unicode characters [#8719]

Post by Lowlander »

baguette wrote:Any updates on this?
See: http://www.ventismedia.com/mantis/view.php?id=8719
HuoRen
Posts: 2
Joined: Sat May 05, 2012 8:08 pm

Re: Winamp API and Unicode characters [#8719]

Post by HuoRen »

This is relevant to my interests.

+1 for IPC_*W
SerMe

Re: Winamp API and Unicode characters [#8719]

Post by SerMe »

Seriously.. This is likely a trivial change. Ask one of your devs to devote 30min to this.
unicode

Re: Winamp API and Unicode characters [#8719]

Post by unicode »

Any news on this?
Glaucus

Re: Winamp API and Unicode characters [#8719]

Post 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.
Fifouxxe

Re: Winamp API and Unicode characters [#8719]

Post by Fifouxxe »

It's 2017 and still not fixed :cry:
Peke
Posts: 17457
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

Re: Winamp API and Unicode characters [#8719]

Post 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).
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