![]() |
I'm making a general plugin and I need a function to increase the volume x%. The only way I found to do this is loop WINAMP_VOLUMEUP (increases volume by 1%) x number of times in a for loop.
Well... when I loop and SendMessage/PostMessage (I tried both) 25 times, my volume % in winamp goes up to 39%. When I try to send the message 50 times, winamp volume goes up to around 95%. What gives!? Thanks, Tristan my code: for(int i = 0; i < 25; i++) { ::SendMessage(hwndParent, WM_COMMAND, WINAMP_VOLUMEUP, NULL); } |
...
I set the volume control to 0%. SendMessing() x 25 times, volume ends up at 39%. SendMessage() x 50 times, volume ends up at 74%. I did the math, and by golly the two are erratic jumps are related. It seems a single WINAMP_VOLUMEUP increases the volume silder by aprox. 1.5%. ....? Any comments/ideas/thoughts on this? Thanks, Flight16 |
| All times are GMT. The time now is 11:43. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.