PDA

View Full Version : End of track!!!


Chill
30th April 2004, 11:32
If there any way to get event of the track end?
Or may be there's some event when next track is started?

Thanks in advance.

DrO
30th April 2004, 12:12
it's usually WM_WA_MPEG_EOF that you need to look for after subclassing the main winamp window with checks also for a few other messages so the following should work:
if(umsg == WM_WA_MPEG_EOF || (umsg == WM_COMMAND && (LOWORD(wp) == WINAMP_BUTTON4 ||
LOWORD(wp) == WINAMP_BUTTON4_CTRL ||
LOWORD(wp) == WINAMP_BUTTON4_SHIFT) ||
umsg == WM_KEYDOWN && wp == 0x56/*VK_V*/)){
// do stuff
}or if that's not to your liking then you could have a look at this post in the what should be useful info thread (http://forums.winamp.com/showthread.php?postid=1335123#post1335123)

/me notes down to add these two as documented examples

-daz