Old 15th March 2003, 12:07   #1
dreadnaut
Junior Member
 
Join Date: Mar 2003
Location: Italy
Posts: 5
Send a message via ICQ to dreadnaut
Just another plugin writer... (trying)

Hi... i'm trying to write a useless plugin, but I got stuck in a problem: there some callaback way to know when Winamp changes song ?
A message to catch ? Or I have to poll every n seconds for the title ?

thanks in advance,
Dreadnaut
dreadnaut is offline   Reply With Quote
Old 15th March 2003, 12:10   #2
dreadnaut
Junior Member
 
Join Date: Mar 2003
Location: Italy
Posts: 5
Send a message via ICQ to dreadnaut
Winamp 2.x... I forgot
dreadnaut is offline   Reply With Quote
Old 20th March 2003, 22:00   #3
jesseg
Senior Member
 
jesseg's Avatar
 
Join Date: Mar 2002
Location: Minneapolis
Posts: 234
from what I racall... no. There is no way to have winamp2 notify your plugins of the track changing. the dudes who build the Tomass Limiter plugins also have some issues with some of thier code related to buffers and detecting the track changing. He hasnt been able to figure it out in years, so if you do, give him a shout too
jesseg is offline   Reply With Quote
Old 21st March 2003, 19:12   #4
dreadnaut
Junior Member
 
Join Date: Mar 2003
Location: Italy
Posts: 5
Send a message via ICQ to dreadnaut
-Sigh- Maybe winamp 2.9 will give us a couple of callbacks
Anyway I found some hints in past threads, and I'm going to use a timer callback... not very beatiful, but works Or maybe I'll try to follow the gen sdk with a WndProc...
dreadnaut is offline   Reply With Quote
Old 24th March 2003, 05:45   #5
A Plugin Developer
Senior Member
 
A Plugin Developer's Avatar
 
Join Date: Jun 2000
Location: Home
Posts: 269
Quote:
Originally posted by jesseg
from what I racall... no. There is no way to have winamp2 notify your plugins of the track changing.
This is NOT true... all you have to do is subclass Winamp and catch this message:
WM_USER + 2 // end of song indicator
A Plugin Developer is offline   Reply With Quote
Old 24th March 2003, 05:52   #6
jesseg
Senior Member
 
jesseg's Avatar
 
Join Date: Mar 2002
Location: Minneapolis
Posts: 234
anyways, i'll forward this thread to the Tomass guy, mabey he'll be interested in it. thanks

j

Last edited by jesseg; 24th March 2003 at 06:16.
jesseg is offline   Reply With Quote
Old 24th March 2003, 17:32   #7
dreadnaut
Junior Member
 
Join Date: Mar 2003
Location: Italy
Posts: 5
Send a message via ICQ to dreadnaut
>This is NOT true... all you have to do is subclass Winamp and
>catch this message: WM_USER + 2 // end of song indicator

nice ! did you find it somewhere or it's personal experience ?
dreadnaut is offline   Reply With Quote
Old 24th March 2003, 22:59   #8
A Plugin Developer
Senior Member
 
A Plugin Developer's Avatar
 
Join Date: Jun 2000
Location: Home
Posts: 269
Quote:
Originally posted by dreadnaut
>This is NOT true... all you have to do is subclass Winamp and
>catch this message: WM_USER + 2 // end of song indicator

nice ! did you find it somewhere or it's personal experience ?
It's in the input plugin SDK.
A Plugin Developer is offline   Reply With Quote
Old 25th March 2003, 18:33   #9
dreadnaut
Junior Member
 
Join Date: Mar 2003
Location: Italy
Posts: 5
Send a message via ICQ to dreadnaut
<homer>doh !</homer> It's strange... i was interested in gen_plugins and I didn't read about nothing else :-)
dreadnaut is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast 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