PDA

View Full Version : newbie needs help


mpopov23
18th June 2007, 00:10
Hi guys!

I'm new to winamp plugins and i need some help. I'm not an expert at C/C++/C#/VB programming, but I'm quite good. I would like to know just how should my plugin dll file look like, which functions should it have, entry point, how does winamp run my plugin and how can i control winamp with my plugin (for example: Play, Next, Previous, etc.). Also could it be done with C# and managed code.

I know that there are probably posts that have these answered, I just didn't know what keywords should I search.

I'd apreciate any help you could give me.

Joel
18th June 2007, 13:52
1) plugin uses same DLL schema (http://forums.winamp.com/showthread.php?s=&threadid=128915) from all the rest of DLLs

2) Get the SDK (http://forums.winamp.com/showthread.php?s=&threadid=188069) and start controlling winamp

3)As far I know you can't make C# plugins, but you can create the applications to control externally Winamp, there are tons of wrappers around here... search: C#, wrappers, WinampMagic, as keywords....

mpopov23
18th June 2007, 15:44
Thanks!

I pretty much found what I needed to begin. Just one more question. If I'm writing a general plugin, is there a function that is being constantly run in background or do i need to make a thread to do so?

Joel
18th June 2007, 16:48
Depends...if you try to keep track in something, you can use timers, inner loops, etc., just try not to brake Winamp :)

mpopov23
18th June 2007, 17:07
Well i just need to monitor if the serial port buffer has any data in it and read it, because i'm planning to make an IR receiver to control winamp.

mpopov23
18th June 2007, 21:59
woooooooohooooooooo!!! :D

I did it.
It's little slappy and rough but it kinda works.

Thanx a lot!