Old 13th January 2013, 21:05   #1
pwninstein
Junior Member
 
Join Date: Jan 2013
Posts: 2
Trouble getting current song on track change

I have the following code to detect when playback stops, and I'm trying to get the name of the song that will be stopped. However, the string that's returned is the name of the NEW file (when I double-click a song in a playlist, for example) - is there another message/parameter I should be looking for?

code:
if (message == WM_WA_IPC && lParam == IPC_STOPPLAYING)
{
char* file = (char*)SendMessage(hwnd, WM_WA_IPC, SendMessage(hwnd, WM_WA_IPC, 0, IPC_GETLISTPOS), IPC_GETPLAYLISTFILE);
}



Thanks in advance!

Winamp 5.622, SDK 5.55
pwninstein is offline   Reply With Quote
Old 13th January 2013, 21:26   #2
DrO
 
Join Date: Sep 2003
Posts: 27,873
you'd be better caching the file from IPC_PLAYING_FILE(W) so you've got the file which was started.

-daz
DrO is offline   Reply With Quote
Old 14th January 2013, 02:18   #3
pwninstein
Junior Member
 
Join Date: Jan 2013
Posts: 2
I'll give that a try. Thank you!
pwninstein is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Developer Center > Winamp Development

Tags
api, message, stop

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