-----------------------------------------------------------------------------
This expands on sound.au3, and can be used as a replacement. I combinds mixer.au3 and sound.au3, along with functions to make using mixer.au3 easier. With audio.au3, you can control the same thing as sound.au3, but with extra commands:
_SoundSetMasterVolume($iVolume) - Sets the Master Volume. Does not control an application's volume
_SoundGetMasterVolume - Gets the Master Volume level
_SoundSetMicrophoneVolume - Sets the Microphone input volume
_SoundGetMicrophoneVolume - Gets the Microphone volume level
_SoundGetPhoneVolume - Gets the Phone volume on the modem
_SoundSetVolumeCD - Sets the Volume level on the CDRom
_SoundSetMasterWaveVolume - Sets the Master Wave Volume level
Enjoy!
Edit: added the code as a attachment due to cut and paste issues with the forum.
Edit2: If you want info on items for MP3, Mega came up with this: http://www.autoitscript.com/forum/index.ph...mp;#entry410387
I may add it to Audio.au3 later seeing how it has to do with audio files.
Edit: _Ismute added. Thanks Xenobiologist
Previous version # of downloads - 605
audio.au3 33.47KB
4247 downloadsEdit: asbeer450 came up with this as a different way to handle audio controls. His method also works well, but has the same limitations as mine. Feel free to use both to see what works good for you.
SoundGetSetQuery.au3 55.24KB
2362 downloads
SoundExample.au3 3.37KB
2029 downloads - Examples for SoundGetSetQuery.au3
Edited by Volly, 04 January 2010 - 01:03 PM.






