views:

177

answers:

1

i want to adjust the volume programatically like Get/SetMasterVolume in vista and xp? using mmsystem unit?

+1  A: 

Here's the implementation of a general purpose api for audio: MMDevApi

http://social.msdn.microsoft.com/Forums/en/windowspro-audiodevelopment/thread/5ce74d5d-2b1e-4ca9-a8c9-2e27eb9ec058

and an example with a button

http://pastebin.com/cMLgHjTJ

Sebastian Oliva
it works with vista but it dosnt work on xp
XBasic3000
sorry, I could not find a version that works on XP without SP3; maybe http://delphi.about.com/cs/adptips2000/a/bltip0800_4.htm or http://www.torry.net/vcl/sound/mixer/amixer.zip or http://www.area-6.co.uk/delphihard.htm
Sebastian Oliva