Link to home
Start Free TrialLog in
Avatar of HarisIV
HarisIVFlag for United States of America

asked on

Changing Wave , Midi and Master volume from Delphi

I need to change volume settings from Delphi, I have tried the API calls but I didn't manage to make them work.
Avatar of HarisIV
HarisIV
Flag of United States of America image

ASKER

Adjusted points to 205
Avatar of zodik
zodik

there are a numer of freeware componets to do this, but if you want to use API, do something like this:
use auxGetNumDevs and auxGetDevCaps to find the devices.

and auxGetVolume,auxSetVolume to control the volume

for the maseter vol, there is waveOutSetVolume.
worked for me.
Avatar of HarisIV

ASKER

I am sory zodik, but you didn't tell me anything new for me, I have said that I have tried the API calls and I didn't manage to make them work, if you give me a working example or the page where I can find those freeware components ( I have search Delphi32.com and other pages but I didn't found anything, I have found one but unfortunaly was a broken link) I will accept the anwser.


Avatar of HarisIV

ASKER

I am sory zodik, but you didn't tell me anything new for me, I have said that I have tried the API calls and I didn't manage to make them work, if you give me a working example or the page where I can find those freeware components ( I have search Delphi32.com and other pages but I didn't found anything, I have found one but unfortunaly was a broken link) I will accept the answer.


ASKER CERTIFIED SOLUTION
Avatar of zodik
zodik

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
wait ... I've found it ... go to http://intermid.com/delphi/dlcoll.htm

first collection on this page, has a volume component.

btw: this site is more recent and updated then delphi32
another good site is http://carbohyd.siobc.ras.ru/torry/MAIN.HTM
hope this helps
Avatar of HarisIV

ASKER

Thanks zodik very much I have found what I was looking for.