Prev Previous Post   Next Post Next
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
 
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