|
|
#1 |
|
Junior Member
Join Date: Sep 2001
Location: Lithuania
Posts: 6
|
how to get winamp volume?
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?
|
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Feb 2002
Location: The backside of the universe on the trailing edge of eternity
Posts: 238
|
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.
|
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Sep 2001
Location: Lithuania
Posts: 6
|
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...
|
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Mar 2002
Location: UK
Posts: 1
|
Winamp volume
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 |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Feb 2002
Location: The backside of the universe on the trailing edge of eternity
Posts: 238
|
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 |
|
|
|
|
|
#6 |
|
Forum King
|
Can't you get the current volume by looking in the winamp.ini file? I think it is in there somewhere.
| |
|
|
|
|
|
#7 |
|
Senior Member
Join Date: Feb 2002
Location: The backside of the universe on the trailing edge of eternity
Posts: 238
|
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. |
|
|
|
|
|
#8 |
|
Forum King
|
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. | |
|
|
|
|
|
#9 |
|
Junior Member
Join Date: Sep 2001
Location: Lithuania
Posts: 6
|
that's the evil way to get the volume... thank god we don't have such api feature
|
|
|
|
|
|
#10 |
|
Junior Member
Join Date: Mar 2002
Posts: 1
|
Volume Control via Win32 API
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.
|
|
|
|
|
|
#11 |
|
Junior Member
Join Date: Sep 2001
Location: Lithuania
Posts: 6
|
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?
|
|
|
|
|
|
#12 |
|
ist death
Join Date: May 2000
Posts: 3,704
|
you are right.
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|