PDA

View Full Version : How to use SDK as an API


hellhawk123
10th November 2008, 21:17
Hi all,

I'm just starting out here trying to understand some things. One thing I'm confused about is:
http://forums.winamp.com/showthread.php?s=&threadid=180297 this thread states that the winamp API is outdated and the SDK should be used in its place. I would simply like to write an application that can query winamp for a list of the media library's ID3 tag information -- I think I have to use itemRecord somehow, but I'm not sure how. How can I use the SDK for this purpose? I don't think a plugin is the right choice.

Thanks

DrO
10th November 2008, 23:20
the api is the sdk just what 'was' the api only covered a few things and people continue to keep using frontend.h (the original api) for whatever crazy reason.

the latest publically available api is in the sdk linked at the top of this forum. for you other question, have a look at the ml_ex example and also ml.h which should give about enough information to get going on with a media library based plugin as you seem to be trying to go towards (if it is purely media library data that you're looking for).

then again it depends on what you're trying to achieve by harvesting this data from the media library, since as you say yourself "I don't think a plugin is the right choice." since there is also a means to pull the data from the media library database via an external app when winamp is not running (i can't remember for certain if it is the current sdk or the next one which will have an example of how to do that) - if it doesn't then looking up 'nde' code examples may get you going on that route (isn't something i'm at all up to speed on / have a proper knowledge about the implementation of).

-daz