Basically, I wanted to know if there's some way I could have AutoIt monitor the audio being put through on my computer, just a simple number would be fine, then I could use GUI abilities to make one of those volume meters or whatever.
To be honest, the reason I want it is for the computer in my room, I had an interesting idea...
See, my room is often dark, and I can't find the lightswitch easily, but I was thinking I could write an AutoIt script with GUI, so that whenever a loud noise is made (heard with the microphone) the screen would go fully white. I have a script that works kind of like this now, but it's manual of course, the "light" comes on when I press enter or space. But if I could have it come on with something as simple as walking into the room and, for example, clapping, that would be neat. And obviously there could be better uses for a function like this.
I'm not quite sure how it would work though, the most logical way I can think of would be a function that just returns an integer, something like int SoundGetOutput(int control)?
Also while I'm at it, I might as well ask if there could be a way to set the volume for more than just the Wave control. Maybe a function like null SoundSetVolume(int control, int volumePercent) (And a int SoundGetVolume(int control) while we're at it).
One script that I just thought of that could be made with these two functions.. maybe something that keeps the audio at a decent level? Have the script constantly running in the background, if it detects a certain control getting too loud it lowers the volume on it.
Anyway it's just something I was thinking of, and I'm a know-nothing when it comes to C, so I really have no clue how hard this would be. I'm imagining that getting the output volume would be the most difficult, but I really don't know.
So anyway, thanks for reading the post, hopefully this can spawn some new ideas...
* By "control" I'm referring to the different devices/channels/whatever you want to call them that you could find on like sndvol32.exe (Wave/Midi/CD/Microphone/Etc)
Edited by Saunders, 12 December 2004 - 10:09 PM.