| View previous topic :: View next topic |
| Author |
Message |
flypaper Contributor


Joined: 19 Oct 2001 Posts: 104
|
Posted: Thu Feb 28, 2002 3:06 pm Post subject: Can I mute the speakers? |
|
|
| I have a prgram now that mutes the speakers by starting the Windows sound controller hidden and sending the keystrokes to mute it. This is very ghetto. Is there a better way in VDS? |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Thu Feb 28, 2002 3:53 pm Post subject: |
|
|
You could use VDSVol.dll (Available on this site) and get the current
volume level then just set the volume level to 0 to "mute" the sound.
The you can restore the saved volume level at any time. _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
flypaper Contributor


Joined: 19 Oct 2001 Posts: 104
|
Posted: Thu Feb 28, 2002 4:03 pm Post subject: |
|
|
| I acutally tried that but it doesn't work. It "mutes" the volume, if I look at the volume level it is at zero. However, once any program attempts to use the speakers, the volume is returned to the usual volume, if that makes sense. It appears that the .dll was only designed to mute something in the VDS code, any external programs attempting to output to the speakers are allowed to do so freely. |
|
| Back to top |
|
 |
marty Professional Member


Joined: 10 May 2001 Posts: 789
|
Posted: Thu Feb 28, 2002 4:58 pm Post subject: |
|
|
The vdsvol.dll mutes only the WAVE out volume not any other external sound as CD, MIDI, ect...
You could use sndvol32.exe and run it hidden, and use a send command with the up arrow or down arrow..
Using a hidden sndvol32.exe is not the ideal solution and causes problems sometimes with Windows 98.
That's the only solution I found to far to control the Master Volume. Since VDSVOL.dll is open source in Delphi someone could try to modify it so we could control the master volume. I tried without any success... I'm a real beginner at Delphi.
Ciao.. |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1565
|
Posted: Thu Feb 28, 2002 11:58 pm Post subject: |
|
|
Hi all, I read this message this morning and did some research on how to modify the volume. Found a really nice delphi component and wrote together a dll (VDSMIX.DLL).
I'll post the new dll here shortly once I get the documentation finished. The dll is created and ready. It will allow you to get/set the master volume, wav, midi, aux, etc all audio mixer controls, as well as mute them (does a real MUTE) It's freeware also.
Btw I've been pretty busy with the new pgware site/products and have hardly had anytime to work with vds related projects. This probably will be my last vds extension that I will make but hopefully others can pickup where I'll be leaving.
Please be patient the dll will be up in a few hours  |
|
| Back to top |
|
 |
marty Professional Member


Joined: 10 May 2001 Posts: 789
|
Posted: Fri Mar 01, 2002 12:43 am Post subject: |
|
|
THANK you SO MUCH!!!!
I've been waiting for this for so long!!!
Thanks a million....... PGWARE!!!!
Will be able to add this to the VDSWORLD Media Player now!!
It's just great!
 |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1565
|
Posted: Fri Mar 01, 2002 7:24 am Post subject: |
|
|
Alright guys its finished, you can get the dll (vdsmix.dll) on the front page of vdsworld's 'recent files' list. Theres bound to be a few bugs in there and the documentation will probably be hard to read. Can't blame me its 1 AM here, I'm very tired and have been at this all day. Hopefully you guys can use this dll. It will let you set/get the volume level for all audio mixer controls (master volume, wave, aux, phone, pc beep, microphone, etc). It retrieves all available audio types and lets you modify them accordingly, it's using the Windows API so it's not ghetto . Theres also a vds 3 script example, although the dll should work just as fine in vds 2 and 4 with some simple script modifications.
Have fun.  |
|
| Back to top |
|
 |
marty Professional Member


Joined: 10 May 2001 Posts: 789
|
Posted: Fri Mar 01, 2002 1:41 pm Post subject: |
|
|
Just implemented it in VDSWORLD Media Player and it works great!
Thanks again for your work!!! |
|
| Back to top |
|
 |
Protected Valued Contributor


Joined: 02 Jan 2001 Posts: 228 Location: Portugal
|
Posted: Sat Mar 02, 2002 12:26 am Post subject: |
|
|
Great! At least I can add the volume bars to Protected Music Player ! |
|
| Back to top |
|
 |
flypaper Contributor


Joined: 19 Oct 2001 Posts: 104
|
Posted: Mon Mar 04, 2002 6:51 pm Post subject: |
|
|
Wow. That SOOO rocks. Thank you very much.  |
|
| Back to top |
|
 |
|