forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Can I mute the speakers?

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
flypaper
Contributor
Contributor


Joined: 19 Oct 2001
Posts: 104

PostPosted: Thu Feb 28, 2002 3:06 pm    Post subject: Can I mute the speakers? Reply with quote

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
View user's profile Send private message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Thu Feb 28, 2002 3:53 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
flypaper
Contributor
Contributor


Joined: 19 Oct 2001
Posts: 104

PostPosted: Thu Feb 28, 2002 4:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Thu Feb 28, 2002 4:58 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Thu Feb 28, 2002 11:58 pm    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Fri Mar 01, 2002 12:43 am    Post subject: Reply with quote

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!

Laughing Razz Laughing Razz Wink
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Fri Mar 01, 2002 7:24 am    Post subject: Reply with quote

Arrow 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 Confused . 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. Twisted Evil
Back to top
View user's profile Send private message
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Fri Mar 01, 2002 1:41 pm    Post subject: Reply with quote

Just implemented it in VDSWORLD Media Player and it works great!

Thanks again for your work!!!
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Protected
Valued Contributor
Valued Contributor


Joined: 02 Jan 2001
Posts: 228
Location: Portugal

PostPosted: Sat Mar 02, 2002 12:26 am    Post subject: Reply with quote

Great! At least I can add the volume bars to Protected Music Player Very Happy !
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
flypaper
Contributor
Contributor


Joined: 19 Oct 2001
Posts: 104

PostPosted: Mon Mar 04, 2002 6:51 pm    Post subject: Reply with quote

Wow. That SOOO rocks. Thank you very much. Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group