|
-
Apr 2nd, 2008, 10:03 PM
#1
Thread Starter
Interweb adm/o/distrator
[RESOLVED] Muting system sound
It seems to be a little difficult on Vista 
Any ideas anyone?
-
Apr 3rd, 2008, 07:56 AM
#2
Thread Starter
Interweb adm/o/distrator
Re: Muting system sound
Semi-Bump, any ideas?
Uh so far i have made it silence all sounds for the specific applications thats it
-
Apr 7th, 2008, 03:14 AM
#3
Thread Starter
Interweb adm/o/distrator
Re: Muting system sound
Any ideas? It needs to silence all audio sounds.
-
Apr 7th, 2008, 11:37 AM
#4
Re: Muting system sound
 Originally Posted by Paul M
It seems to be a little difficult on Vista
Any ideas anyone?
With code or without code?
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread " Resolved", if the query is solved
MyGear:
★ CPU ★ Ryzen 5 5800X
★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
★ Keyboard ★ TVS Electronics Gold Keyboard
★ Mouse ★ Logitech G502 Hero
-
Apr 7th, 2008, 12:51 PM
#5
New Member
Re: Muting system sound
With code or without code? >>>>
you are too funny, take my bow koolsid
 into the forum,  out of the forum
-
Apr 7th, 2008, 08:31 PM
#6
Thread Starter
Interweb adm/o/distrator
Re: Muting system sound
With code of course!
-
Apr 8th, 2008, 06:34 AM
#7
Re: Muting system sound
 Originally Posted by Paul M
With code of course! 
Hi
Just wanted to be sure when I asked that question 
You need to create 1 textbox and two commandbuttons. Try this code...
Please make any changes that you feel are required in the below code...
vb Code:
Private Declare Function waveOutSetVolume Lib "Winmm" (ByVal wDeviceID As Integer, ByVal dwVolume As Long) As Integer
Private Declare Function waveOutGetVolume Lib "Winmm" (ByVal wDeviceID As Integer, dwVolume As Long) As Integer
Private Sub Command1_Click()
Dim a, i As Long
Dim tmp As String
a = waveOutGetVolume(0, i)
tmp = "&h" & Right(Hex$(i), 4)
Text1 = CLng(tmp)
End Sub
Private Sub Command2_Click()
Dim a, i As Long
Dim tmp, vol As String
vol = Text1
tmp = Right((Hex$(vol + 65536)), 4)
vol = CLng("&H" & tmp & tmp)
a = waveOutSetVolume(0, vol)
End Sub
To understand more about waveOutSetVolume, check out this site
http://msdn2.microsoft.com/en-us/library/ms713762.aspx
Hope this helps...
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread " Resolved", if the query is solved
MyGear:
★ CPU ★ Ryzen 5 5800X
★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
★ Keyboard ★ TVS Electronics Gold Keyboard
★ Mouse ★ Logitech G502 Hero
-
Apr 9th, 2008, 02:33 AM
#8
Thread Starter
Interweb adm/o/distrator
Re: Muting system sound
That just mutes the sounds from the program itself not vista.
-
Apr 9th, 2008, 07:16 AM
#9
Thread Starter
Interweb adm/o/distrator
Re: Muting system sound
Hmmm would it have something to do with the DeviceID? But what exactly would the DeviceID be for something like that Windows Sounds.
-
Apr 9th, 2008, 09:32 PM
#10
Thread Starter
Interweb adm/o/distrator
Re: Muting system sound
Nevermind figured it out 
Created a DLL in C++ which turned out to only be 8Kb and just called the functions exported with it. Ill post the source to the DLL in the C++ codebank shortly for whoever wants it.
-
Apr 9th, 2008, 09:45 PM
#11
Thread Starter
Interweb adm/o/distrator
Re: [RESOLVED] Muting system sound
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|