Szhlopp Posted July 30, 2009 Posted July 30, 2009 Okay so I hit a road block... Basically my computer is playing different songs through a WMP object I created in my au3 script. My problem is the sound level. Some of the tracks are really really loud and some are so low I can't barely hear. So that gave me the idea to create a sound monitor. I already have all the code to change the WMP object volume, my main volume and the wave volume, but I have no idea how to get the current Db level that's coming out of the speakers. I need to somehow test if the volume is > X db and < X db. Then make the changes to either make it louder or softer =) Hope that makes sense. Any idea on how to read the level? Thanks, Szhlopp RegEx/RegExRep Tester!Nerd Olympics - Community App!Login UDFMemory UDF - "Game.exe+753EC" - CE pointer to AU3Password Manager W/ SourceDataFiler - Include files in your au3!--- Was I helpful? Click the little green '+'
FireFox Posted July 30, 2009 Posted July 30, 2009 Okay so I hit a road block...Basically my computer is playing different songs through a WMP object I created in my au3 script. My problem is the sound level. Some of the tracks are really really loud and some are so low I can't barely hear. So that gave me the idea to create a sound monitor.I already have all the code to change the WMP object volume, my main volume and the wave volume, but I have no idea how to get the current Db level that's coming out of the speakers. I need to somehow test if the volume is > X db and < X db. Then make the changes to either make it louder or softer =)Hope that makes sense. Any idea on how to read the level?Thanks,SzhloppI think you can do that with the BASS UDF (bass.dll included)Cheers, FireFox.
Szhlopp Posted July 30, 2009 Author Posted July 30, 2009 (edited) I think you can do that with the BASS UDF (bass.dll included)Cheers, FireFox.Sweet.Okay so I got the latest bass.dll and the Au3 UDF's created... Going to play with it a bit and see if I can make this work right.EDIT: Looks like this is exactly what I want, but for a stream created off of it... I need to be able to get the the systems main volume level. So that I can make changes off of that specifically. It needs to be able to monitor not only the WMP object but any other sound that it's playing through the system =)Thank you FireFox, it's close... just not quite what I need. Edited July 30, 2009 by Szhlopp RegEx/RegExRep Tester!Nerd Olympics - Community App!Login UDFMemory UDF - "Game.exe+753EC" - CE pointer to AU3Password Manager W/ SourceDataFiler - Include files in your au3!--- Was I helpful? Click the little green '+'
BrettF Posted July 31, 2009 Posted July 31, 2009 Check out the example for BassEnc. Cheers, Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
Szhlopp Posted August 2, 2009 Author Posted August 2, 2009 Check out the example for BassEnc.Cheers,BrettUppity up.Again, BASS does exactly what I want, but for its specific stream. I need the main volume.Thanks again RegEx/RegExRep Tester!Nerd Olympics - Community App!Login UDFMemory UDF - "Game.exe+753EC" - CE pointer to AU3Password Manager W/ SourceDataFiler - Include files in your au3!--- Was I helpful? Click the little green '+'
AdmiralAlkex Posted August 2, 2009 Posted August 2, 2009 Uppity up.Again, BASS does exactly what I want, but for its specific stream. I need the main volume.Thanks againThat's why he said you should take a look at BassEnc which records sound. You need to record the device that get's your outputted sound, it's sometimes called "Stereo Mix". You should try the example in the BassEnc UDF.You can also "record" the sound input with mci. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now