View Full Version : ***UPDATED*** Master, Wave and Mic Volume Control with Mute ***UPDATED***
For anyone interested in controlling the volume levels and or muting volumes, I've added more functionality to my DLL. You can now control the Master Volume and mute, Wave Volume and mute, and Mic Volume and mute from within AMS.
The sample app uses all the functions available in the DLL. If you have questions, fire away.
Get it here. (http://www.warmuskerken.com/ams/fcsound.zip)
tbybee
12-20-2002, 01:22 PM
This is great stuff! Thanks for sharing this information. Can't wait to try it on my mother-in-law! :-)
One question....will this work on all Windows systems, 95/98/ME/NT/2000/XP?
Thanks
Tony
I've tested it on Win98/2000/XP Home and Pro.
Documentation for the API I called from inside the DLL states that it should work on 95 and up. Of course all of this is dependent on if they have a sound card. If any function returns a 999, then it failed. So if you try to GetMasterVol and get a 999, chances are they don't have a sound card. Same applies for GetWaveVol or GetMicVol.
Sorry to Corey... I've hunted all over the net and even through some old code manuals, but I can't seem to find the API that works on Mothers-In-Law. This might have to be accomplished manually with a big stick and duct tape.
The_Mechanic
12-20-2002, 04:11 PM
Hello Worm,
Happy Holidays to you.....And to everyone on the Boards!
Great looking stuff......Thanks for sharing......Can't wait to add this to a project..... /ubbthreads/images/icons/smile.gif
The_Mechanic
Corey
12-20-2002, 05:01 PM
"Note to self, purchase stick and duct tape."
Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)
The Manual called for a "BIG" stick.
<font color=red>**************UPDATE**********************</font color=red>
I found a little glitch in the functions. I had the Mute On and Off reversed. If you called SetWaveMuteOn, it was actually turning the Mute off for the Wave Volume and vice versa. This was the case for all Volumes with the mute functions.
I also have added CD and Line in functions. Here is a complete list of the functions:
SetMasterVol
GetMasterVol
SetMasterMuteOn
SetMasterMuteOff
IsMasterMuteOn
SetWaveVol
GetWaveVol
SetWaveMuteOn
SetWaveMuteOff
IsWaveMuteOn
SetMicMuteOn
SetMicMuteOff
SetMicVol
GetMicVol
IsMicMuteOn
SetLineVol
GetLineVol
SetLineMuteOn
SetLineMuteOff
IsLineMuteOn
SetCDVol
GetCDVol
SetCDMuteOn
SetCDMuteOff
IsCDMuteOn
Download Here. (http://www.warmuskerken.com/ams/fcsound.zip)
I'm curious to know if anyone has tried using this DLL. If so, did it function properly for you?
The file has been downloaded quite a bit, and I'd like to know if anyone has had troubles with it.
Option_Explicit
01-03-2003, 11:29 AM
We're not telling you anything, Everyone here is scared if this .dll goes to your head, the next version will have a WPA (worm product activation) attached to it!!
HA!
That's funny! Thanks for the chuckle.
eric_darling
01-13-2003, 10:25 PM
Worm,
I've played around with the DLL a bit, and it works great in my project, except for one thing. I'm trying to design a parent page for the entire project where the volume control will appear on every inherit page. When I put the images/commands together on the parent page, and then preview the project, it doesn't work properly. It ends up looking like this in the actual inherit pages:
Click Here (http://www.videoconstruction.com/bad-volume.png)
I tweaked the background color in Photoshop, yes. And yes, it works great if I put the associated images on individual pages and run without calling to a parent page. Any ideas?
It looks like a Z-Order thing to me. There are three different images that are shown when you mouse over the VOLUME button, to attempt the illusion of it sliding out from the side, (although very quickly).
The screen snippet you sent looks like the images are in the reverse order of what they should be.
kpsmith
01-14-2003, 07:36 AM
I've been having problems with the z-order when using parent pages. The Parent page works correctly but all derivative pages the Z-order gets screwed up. Seems like a bug to me.
eric_darling
01-14-2003, 08:10 AM
Nope. It works fine in the parent page itself. Just when a page inherits it does it look like that. I can send you the project if you have an e-mail you can provide.
My email is in my profile, less the no_spam_
I did some tests, and what AMS seems to be doing is reversing the Z-Order from a Parent page to the Inherited Page.
eric_darling
01-14-2003, 11:40 AM
Should this be reported in a separate titled thread? If so, I think Worm should handle it since he has experience in working around the bug.
Powered by vBulletin™ Version 4.0.6 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.