View Full Version : Where are ratings stored?
paindivine
14th November 2006, 02:48
When you right click on a playlist entry, there is the option to select a rating for that song. Where is this information stored? I would like to develop a plugin that uses this information as a weighted value to help determine which songs Winamp should play most frequently. If a free plugin like this already exists (I couldn't fine one), please let me know. Thanks!
DrO
14th November 2006, 12:34
in the media library database. i think there's apis for getting/setting the rating of a file in the sdk, a search for 'rating' should show up anything and should help to get you going
-daz
Tardymo
14th November 2006, 13:42
There are WM_COMMAND messages for setting the rating (for current item as well as selected items). I guess SDK lacks functionality of getting the rating.
DrO
14th November 2006, 16:00
well i see IPC_SETRATING and IPC_GETRATING which have been in the 5.04 sdk for a good 2 years or so now. using IPC_GETLISTPOS and IPC_SETPLAYLISTPOS, it's possible to make it work for any playlist item that you want (current current position, set to the one wanted, call the rating api's as needed and then restore the current entry to where it was on starting)
-daz
Tardymo
14th November 2006, 16:25
Oh, I missed that, because this message is "in-process only" section. Haven't yet got so far in my class implementation.
vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.