PDA

View Full Version : how to get winamp volume?


Pierkoonz
3rd March 2002, 07:32
I need to get winamp volume, so i can then slowly shift it to a particular position. But i didn't found HOW to get winamp volume... Is there a way to do this?

Gourou
5th March 2002, 10:18
I dont think there is a way to GET it, merely to SET it. Just store the value you set it to, then you can increment it as you need it. The winamp API Frontend.h will have the api call, you should be able to call the api even in delphi.

Pierkoonz
5th March 2002, 10:31
I can do this, i know, but i would like to slowly shift winamp's volume from CURRENT position assuming i don't know it... Well maybe it's too much for winamp...

ARC
7th March 2002, 01:13
Hi Pierkoonz

Been trying to do the same thing myself, the api call dosen't seem to exist.

I would also like to be able to send winamp a path to a playlist,from my front end, and have it load, there doesn't seem to be an obviouse way to do that,any body know different ?

ARC

Gourou
7th March 2002, 03:11
in answer 1:
no to the volume, I dont see a feasible way to get the current volume, but I think I refuse to say it's impossible, because I know of several plugins that change the volume without setting it to a default first, G2 is the first that comes to mind.

in answer 2:
check out the command line parameter that is sent to winamp to enqueue songs, if you sent it a playlist it should load the playlist the same way

n_ick2000
7th March 2002, 23:18
Can't you get the current volume by looking in the winamp.ini file? I think it is in there somewhere.

Gourou
7th March 2002, 23:29
that's the default volume for the next time it opens

there is a way to increment in steps the volume, there is an api command, but it doesnt give you much control, you still dont know what it is, you can merely up it a notch or down it a notch at a time.

n_ick2000
8th March 2002, 23:37
if the API will let you know when the volume won't go up/down anymore, you could increase the volume 1 notch until it notifies you that you can't increase it anymore. Get the number of notches it took. Decrease the volume that many notches to set the volume back to what it was. And subtract the number of notches it took from the maximum volume to get the current volume.

That won't work unless the API notifies you when you reached the maxium though.

Pierkoonz
9th March 2002, 08:17
that's the evil way to get the volume... thank god we don't have such api feature :)

RFoxJr
14th March 2002, 22:17
I am using the win32 API call to waveOutGetVolume. It returns the current volume setting for the wave device, which after some testing I determined is the same volume Winamp is using. Hope that helps.

Pierkoonz
15th March 2002, 06:44
I'm not very familar with multimedia windows api, but i think this volume won't work if i will use the direct sound plug-in... or am i wrong?

peter
15th March 2002, 08:54
you are right.