Go Back   Winamp Forums > Developer Center > Winamp Development

Reply
Thread Tools Search this Thread Display Modes
Old 28th April 2002, 14:07   #1
Ophenix
Junior Member
 
Join Date: Nov 2001
Posts: 5
Detection in VB

Hi all

Is there a way to detect when the user have pressed on the stop button? or when a song stops?

I have tried the "IPC_GETOUTPUTTIME" but it's not working very time.

Any ideas?
Ophenix is offline   Reply With Quote
Old 28th April 2002, 18:21   #2
Gourou
Senior Member
 
Gourou's Avatar
 
Join Date: Feb 2002
Location: The backside of the universe on the trailing edge of eternity
Posts: 238
IPC_ISPLAYING
Gourou is offline   Reply With Quote
Old 28th April 2002, 21:31   #3
Ophenix
Junior Member
 
Join Date: Nov 2001
Posts: 5
Yes, but in this case it will not work. The program must detect if the user have pressed stop or if the song have ended. Because if the song have ended a new song will start.

If i use IPC_ISPLAYING a new song will start if the start button is pressed.

Maby i shall mention i'm trying to write a plugin so the songs in the playlist gets really randomly played.
Ophenix is offline   Reply With Quote
Old 28th April 2002, 23:08   #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
haha, yeah, that woulda helped...hmmmmmm............ ok, set a timer for 50 milliseconds, in this timer, set a static for the previous song name and a static for previous play state, every time, check the song title, AND check for ISPLAYING, if ISPLAYING is Stopped, then you know they hit stop, if the previous time, it was Playing, now, check the Title, if the previous title is different than the current, then you know the song has changed, now, do what you gotta do, change the song or whatever, then at the end, set your statics for the new values so you can check them 50 milliseconds from then.
Gourou is offline   Reply With Quote
Old 29th April 2002, 12:00   #5
Ophenix
Junior Member
 
Join Date: Nov 2001
Posts: 5
Great, thanks Gourou
Ophenix 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