View Full Version : Controlling Sound Volume
I just finished writing my first C++ DLL.
It's nothing spectacular, but it is something I wanted to be able to do from within AMS4. So here it is in all it's glory in a sample application. I hope others can find a use for it too.
wSoundDLL.dll
Allows you to control the Wave Volume from within your application. I know you can execute the SndVol32.exe to get a volume control, but I wanted to be able to make the volume control integrated in my design.
Download it here (http://www.warmuskerken.com/ams/merryhoho.zip)
Corey
12-10-2002, 10:51 PM
Sweet, I can hardly wait to try it out. Thanks!
Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)
kpsmith
12-11-2002, 07:58 AM
Really cool...
The Volume control works great. Now I just have to come up with a project to use it for.
tbybee
12-11-2002, 12:13 PM
That's very nice. Good Job. I've looked at the source, but I cannot figure out how you are swapping the background image. I see you have an image on top of, but I don't see what's causing it to show/hide in the app.
Thanks
Tony
Look in the OnProgress of the MP3 player and you'll see the code.
eric_darling
12-11-2002, 01:23 PM
Worm, you have my nomination for the AMS developer of the year - keep it coming, my mud munchin' man!
Corey
12-11-2002, 01:38 PM
I'll second that...
Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)
tbybee
12-11-2002, 02:00 PM
Thank You! Very good stuff....
What about a "mute" toggle button. How would one go about that?
Thanks
I'm working on that right now. Hopefully when I'm done the DLL will control the Master Volume, Wave Volume and Muting. If I'm lucky, I can get the other volumes too (CD, Line In, Mic, etc..)
Corey
12-11-2002, 03:02 PM
If you can tweak it so it works on mother-in-laws too you'll be a rich man...
Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)
Lorne
12-12-2002, 12:55 PM
LOL Corey. I nearly spit lunch all over my monitor. /ubbthreads/images/icons/smile.gif
yosik
12-13-2002, 06:13 AM
Forget about volume control for Mother-inLaw.
Just a mute button should be enough.... in self activating mode as the default.
I was just informed that the ZIP file for this project was a little mixed up. Files weren't being placed where they were supposed to and it made for an ugly scene when the project was run. SORRY!
Anyhow, I fixed the zip file and it should work properly now.
Corey
01-12-2003, 07:06 PM
Ka-ching!
(Not to be confused with I-Ching, chinese book of changes)
Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.