View Single Post
Old 13th January 2013, 21:05   #1
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?

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