Go Back   Winamp Forums > Developer Center > Winamp Development

Reply
Thread Tools Search this Thread Display Modes
Old 14th March 2009, 22:08   #1
zubalama
Junior Member
 
Join Date: Mar 2009
Location: Georgia
Posts: 12
Please Help

Hello All! I'm Zuba,developer of Winamp plugins;I have write very good plugin(Input) but I have some problems:
1.When Winamp maximize,I can't catch his event(event of maximize,I have overload Winamp Procedure); I desire restrict Winamp fullscreen!
2.When Winamp Main Window is hide(not minimize,Alt+W or deactivate "Main Window" CheckBox),I cant catch his event
(also when Winamp restore with Alt+W or activate "Main Window" CheckBox);

Please Help!!

Beforehand thanks(sorry my bad english )
zubalama is offline   Reply With Quote
Old 15th March 2009, 04:01   #2
griffins_Grader
Senior Member
 
Join Date: Aug 2008
Posts: 114
check events with spy++, I think it comes with windows platform SDK tools.
griffins_Grader is offline   Reply With Quote
Old 15th March 2009, 21:18   #3
zubalama
Junior Member
 
Join Date: Mar 2009
Location: Georgia
Posts: 12
Winamp don't have standart windows platform messages
and spy++ is feeble in this moment
zubalama is offline   Reply With Quote
Old 16th March 2009, 08:33   #4
griffins_Grader
Senior Member
 
Join Date: Aug 2008
Posts: 114
From the SDK I don't know what it is but I saw some WM_SIZE messages relative to screen size, If I am thinking what you are thinking then I think it is not a good idea to do what you want to do.
griffins_Grader is offline   Reply With Quote
Old 16th March 2009, 17:46   #5
zubalama
Junior Member
 
Join Date: Mar 2009
Location: Georgia
Posts: 12
Winamp process only this WM_SIZE messages:
1.SIZE_MINIMIZED
2.SIZE_RESTORED
(not SIZE_MAXIMIZED)
zubalama is offline   Reply With Quote
Old 16th March 2009, 18:07   #6
zubalama
Junior Member
 
Join Date: Mar 2009
Location: Georgia
Posts: 12
And also one question:
How I can get played track full info?
(Title,Artist,Album,Album Artist,Year,Genre,Comment,Composer,Publisher)
I can get only track title,duration and artist.
Please Help!
zubalama is offline   Reply With Quote
Old 17th March 2009, 10:29   #7
griffins_Grader
Senior Member
 
Join Date: Aug 2008
Posts: 114
Look at IPC_GET_EXTENDED_FILE_INFO in wa_ipc.h and also this link may be of help http://forums.winamp.com/showthread.php?postid=2350085
griffins_Grader is offline   Reply With Quote
Old 17th March 2009, 14:39   #8
zubalama
Junior Member
 
Join Date: Mar 2009
Location: Georgia
Posts: 12
Quote:
Originally posted by griffins_Grader
Look at IPC_GET_EXTENDED_FILE_INFO in wa_ipc.h and also this link may be of help http://forums.winamp.com/showthread.php?postid=2350085
Thanks! It Works!
zubalama is offline   Reply With Quote
Old 18th March 2009, 12:18   #9
zubalama
Junior Member
 
Join Date: Mar 2009
Location: Georgia
Posts: 12
How I can set Winamp main Dialog window width and heigth?
MoveWindow,SetWindowPos,SetWindowPlacement and other windows functions don't set it
zubalama is offline   Reply With Quote
Old 18th March 2009, 13:19   #10
DrO
-
 
DrO's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 22,270
you can't since that all depends on the skin you're using (with the classic skins it's fixed at 275 x 116 from what i remember) and modern skins (which have a different window handle from what's passed in the plugin structure) working a completely different manner which is defined by the parameters stored in it's xml/maki files.

-daz
DrO is offline   Reply With Quote
Old 18th March 2009, 14:09   #11
zubalama
Junior Member
 
Join Date: Mar 2009
Location: Georgia
Posts: 12
When I set Winamp sizes(MoveWindow for example),it works but when I move Winamp, it winking!
What this?
Please Help!
zubalama is offline   Reply With Quote
Old 19th March 2009, 11:10   #12
griffins_Grader
Senior Member
 
Join Date: Aug 2008
Posts: 114
How does it wink? like this ? stick to what dro said.
griffins_Grader is offline   Reply With Quote
Old 19th March 2009, 19:39   #13
DrO
-
 
DrO's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 22,270
i'll take 'winking' as being the window snapping back to where it was before you tried to override it's position. and MoveWindow(..) is definitely the wrong api to be using since that's re-triggering Winamp's positioning code. you can do it with some lower-level windows message overrides but messing around with the position of a window instead of the user doing it isn't a good idea imho plus you can't make it work reliably for all skin types (going on my own experience from a few years back).

-daz
DrO is offline   Reply With Quote
Old 20th March 2009, 08:18   #14
zubalama
Junior Member
 
Join Date: Mar 2009
Location: Georgia
Posts: 12
How to analyze spectrum data in visualyzer plugin? I desire
drawing it with OpenGL!
zubalama is offline   Reply With Quote
Old 23rd March 2009, 18:53   #15
DrO
-
 
DrO's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 22,270
you're best having a look at the vis_avs and vis_milk source code (from their respective sub-forums) on going about handling data in vis plugins - as for opengl then that's going to have to be down to you to work out (i can't remember much of anything about the opengl stuff i used to do many many moons ago).

-daz
DrO is offline   Reply With Quote
Old 26th March 2009, 12:26   #16
zubalama
Junior Member
 
Join Date: Mar 2009
Location: Georgia
Posts: 12
I wish drawing spectrum data as colors(using Red,Green,Blue)
it type is unsigned char(0,255),but when I draw colors, it not correct! Please, say how to draw colors!
zubalama is offline   Reply With Quote
Old 26th March 2009, 13:09   #17
DrO
-
 
DrO's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 22,270
sorry but i've no experience with the visualation plugin api so i can't really suggest anything.

-daz
DrO 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