View Full Version : Calling plugin on winamp state change
7th March 2002, 10:47
I'm trying to make a simple plugin, which would write "Now playing foo.mp3" to a file, when the track is changed in Winamp. Now, I have studied the gen_minisdk, and everything else seems clear, but I don't know how to make winamp call a function in my plugin, when it changes the track.
BTW, is there a mailing list archive? Couldn't find one.
7th March 2002, 11:02
Too late! :p
Whatever it is that you intend to achieve, you almost certainly can do it with this plug-in: http://www.oddsock.org/tools/dosomething/ :)
7th March 2002, 12:42
Shouldn't this be a forum for developers, not plugin ads?
Anyway, I checked the sourcecode. That plugin has a timer to continuously check the song name. Is that the only way to go? Can't I set the song name in my plugin with a callback?
7th March 2002, 21:01
nope, winamp just runs your pluggy and gives you an interface to access, it's not a babysitter for every function you want, that's why they expose an api to you, so you can do what you want for yourself. If you want it to baby sit I could also use a call for volume control, skin change, second change, millisecond change, balance change, playlist change, ID3 info change, etc, etc..Get my point? It wont kill your cpu usage to run a timer every 10 msecs to see if the title changes and if it hasnt then just dont do anything till the timer spawns again. BTW, technically speaking, this doesnt have to be a plugin. I wrote a standalone web server to hash out some web pages on demand, just thought I would share that in case it might make your life easier.
7th March 2002, 21:26
Originally posted by Gourou
nope, winamp just runs your pluggy and gives you an interface to access,
Thanks for this friendly answer. See how short it got after cutting the crap. Anyway I'm off to code now. Thanks again. :)
26th March 2002, 11:35
now if only I could kick his ass *sigh*
note to anyone that reads these things, dont be a snob when someone tries to help you, if they point you to a program, check it out, it might be simpler anyway, and if you are a prick about it, then expect to get something back about it, we dont tolerate people that are inconsiderate to us, griffin gave him what he needed, and the best thanks he gave was to make a remark about it being an ad, then when I helped him, and made it thorough, he called it crap.. that wont help any of us, and many of us are in here simply to help now, we get little gain from telling things we already know. If you insist on being this way, expect your help to simply fizzle, we wont continue to help those that arent kind to us.
vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.