View Full Version : Controlling volume
27th August 2007, 18:03
General question concerning the volume.
I see there is a way to increment/decrement the volume, however my question is how to determine the current volume level.
You can inc/dec by a percentage; however I don't see a way to determine what the volume level is currently at.
Is this possible?
27th August 2007, 18:12
get the 5.34 sdk and see the additional notes on ipc_setvolume. it's a fixed scale of 0-255 that the volume goes, not a percentage to clarify things.
29th August 2007, 20:15
Thanks for your reply.
I am familiar with using the ipc_setvolume; however what I am looking for is a way to determine what the volume level currently is.
Is this possible?
I see a way to set it, I guess what I am asking is how to get it.
There seems to be setters/getters for most everything else; however I do not see a way to get the volume.
29th August 2007, 20:47
it's in the notes on using IPC_SETVOLUME in the version of the sdk referenced to pass -666 as the param to get the current volume. additionally as from the 5.35 sdk (not publically released due to other issues) there's the following added into wa_ipc.h ...
#define IPC_GETVOLUME(hwnd_winamp) \
29th August 2007, 20:51
Thanks for your help!
30th August 2007, 02:29
do you have a link to the 5.34 sdk?
Open mouth, insert foot...sorry, missed the sticky.
11th September 2007, 19:12
Yes, I do. I'm all set. Thanks.
11th October 2007, 15:48
I don't see a Command to call mute... Is this possible?
I'd like to be able to mute on/off. I could get the volume and return to it, but wondering if there's a direct command to call mute.
11th October 2007, 16:50
you'll have to manually drop/restore the volume yourself (is how the mute functions in some of the modern skins works)
11th October 2007, 19:00
vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.