mr_biscuit
12th February 2003, 10:01
Unfortunately there is no api that will return the current volume of winamp. I have managed to find a way (it is messy) but it does return the volume.
What you have to do is extract the volume from the winamp ini file. The only problem is that this value is not current - it is the volume that was set when the user last exited winamp (and therefore triggered the ini file to be written).
What I have done is to refresh the volume when winamp is idle (i.e. not playing!) by restarting winamp and hence updating the ini file. I can then extract the volume which is now as up2date as possible.
I told you this is messy but its the only way I can find to retrieve the volume. If anyone knows of a way to update the ini file in any other way other than restarting winamp, please let me know!
Mr Biscuit
What you have to do is extract the volume from the winamp ini file. The only problem is that this value is not current - it is the volume that was set when the user last exited winamp (and therefore triggered the ini file to be written).
What I have done is to refresh the volume when winamp is idle (i.e. not playing!) by restarting winamp and hence updating the ini file. I can then extract the volume which is now as up2date as possible.
I told you this is messy but its the only way I can find to retrieve the volume. If anyone knows of a way to update the ini file in any other way other than restarting winamp, please let me know!
Mr Biscuit