Go Back   Winamp Forums > Developer Center > Winamp Development

 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 31st January 2004, 08:50   #1
DrLobo
Junior Member
 
Join Date: Sep 2001
Location: France
Posts: 47
Topic for Delphi plugin developers

Hi,

the aim of this topic is to gather knowledge about plugin development with Delphi.

You can find some code by browsing this forum, but I never found a complete example on how a delphi plugin should be.

Here some code that could be useful to start:

tutorial for a general plugin:
www.sntd.de
This is one is old (2000!) and based on winamp 2.x api but works.

One of the most intersting thing, was the translation of winamp 2.9.x api by Saivert:

Quote:
I have ported (or, actually translated) the C/C++ code and headers from the WA 2.9x SDK to Object Pascal (for use with Borland Delphi).

A little about the so-called skin SDK:
What you actually get when you download the above Winamp 2.9x SDK is two headers.
One called wa_ipc.c (wa_ipc.pas in my ZIP).
And one called wa_dlg.h (wa_dlg.pas in my ZIP). So to make your plugin window look like the rest of Winamp's window you must implement a lot of the code that is in wa_dlg.h. When you write your Window Procedure you must pass the hwnd, msg, wParam and lParam to a function called "WADlg_handleDialogMsgs". Like this:

function LRESULT myWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) {
int a=WADlg_handleDialogMsgs(hwnd, uMsg, wParam, lParam); if a > 0 return a;
switch uMsg
{
case WM_DISPLAYCHANGE:
WADlg_init(hwnd);
// Do other stuff here
}
}
delphiwa29xsdkbysaivert.zip

but I never found how to use it...


If somebody could create a very simple general plugin with the new api (and with skinned,dockable windows), I think it will help a lot of people (and me the first!).
DrLobo is offline   Reply With Quote
 
Go Back   Winamp Forums > Developer Center > Winamp Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump