Go Back   Winamp Forums > Developer Center > Winamp Development

Reply
Thread Tools Search this Thread Display Modes
Old 24th October 2006, 14:37   #1
MoJo2600
Junior Member
 
Join Date: Oct 2006
Posts: 9
Show song title in Vis Plugin

Hello,

i wrote a simple vis plugin for winamp to show a vu-meter on an 2x20 Character LC Display.

But now i want to show the song title when a new song begins. But i don't know how to get access to the song information.

Can anybody give me a hint?

MoJo
MoJo2600 is offline   Reply With Quote
Old 24th October 2006, 17:54   #2
DrO
-
 
DrO's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 22,494
IPC_GETPLAYLISTFILE will get you the title information (as it shows in the playlist entry) and IPC_GETLISTPOS will give you the index of the currently playing track

-daz
DrO is offline   Reply With Quote
Old 24th October 2006, 18:12   #3
MoJo2600
Junior Member
 
Join Date: Oct 2006
Posts: 9
Hello,

thanks for the fast answer, but is there a small code example how to implement this in my vis plugin?

Tanks!

MoJo
MoJo2600 is offline   Reply With Quote
Old 24th October 2006, 18:15   #4
MoJo2600
Junior Member
 
Join Date: Oct 2006
Posts: 9
ah, i see...

something like this i guess:

lp = SendMessage(hWndWinamp, WM_USER, iIndex, byval IPC_GETPLAYLISTFILE)
MoJo2600 is offline   Reply With Quote
Old 25th October 2006, 09:52   #5
MoJo2600
Junior Member
 
Join Date: Oct 2006
Posts: 9
Hello,

i've experienced one strange effect with that "IPC_GETPLAYLISTTITLE" sometimes when i select another song from the playlist, the function call returns me the complete path of the file ?!? Not the title. Does anybody know why and how to prevent this?

Regards,
MoJo
MoJo2600 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