Go Back   Winamp Forums > Developer Center > Winamp Development

Reply
Thread Tools Search this Thread Display Modes
Old 7th March 2002, 10:47   #1
mmmm
Junior Member
 
Join Date: Mar 2002
Posts: 3
Calling plugin on winamp state change

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.
mmmm is offline   Reply With Quote
Old 7th March 2002, 11:02   #2
griffinn
Court Jester
(Forum King)
 
griffinn's Avatar
 
Join Date: May 2000
Location: Your local toystore
Posts: 3,502
Send a message via ICQ to griffinn
Too late!

Whatever it is that you intend to achieve, you almost certainly can do it with this plug-in: http://www.oddsock.org/tools/dosomething/

The smiley slot machine! | Quotable Blog
griffinn is offline   Reply With Quote
Old 7th March 2002, 12:42   #3
mmmm
Junior Member
 
Join Date: Mar 2002
Posts: 3
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?
mmmm is offline   Reply With Quote
Old 7th March 2002, 21:01   #4
Gourou
Senior Member
 
Gourou's Avatar
 
Join Date: Feb 2002
Location: The backside of the universe on the trailing edge of eternity
Posts: 238
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.
Gourou is offline   Reply With Quote
Old 7th March 2002, 21:26   #5
mmmm
Junior Member
 
Join Date: Mar 2002
Posts: 3
Quote:
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.
mmmm is offline   Reply With Quote
Old 26th March 2002, 11:35   #6
Gourou
Senior Member
 
Gourou's Avatar
 
Join Date: Feb 2002
Location: The backside of the universe on the trailing edge of eternity
Posts: 238
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.
Gourou is offline   Reply With Quote
Reply
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