Results 1 to 11 of 11

Thread: [RESOLVED] Muting system sound

  1. #1

    Thread Starter
    Interweb adm/o/distrator Paul M's Avatar
    Join Date
    Nov 2006
    Location
    Australia, Melbourne
    Posts
    2,306

    Resolved [RESOLVED] Muting system sound

    It seems to be a little difficult on Vista

    Any ideas anyone?

  2. #2

    Thread Starter
    Interweb adm/o/distrator Paul M's Avatar
    Join Date
    Nov 2006
    Location
    Australia, Melbourne
    Posts
    2,306

    Re: Muting system sound

    Semi-Bump, any ideas?

    Uh so far i have made it silence all sounds for the specific applications thats it

  3. #3

    Thread Starter
    Interweb adm/o/distrator Paul M's Avatar
    Join Date
    Nov 2006
    Location
    Australia, Melbourne
    Posts
    2,306

    Re: Muting system sound

    Any ideas? It needs to silence all audio sounds.

  4. #4
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: Muting system sound

    Quote 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

  5. #5
    New Member taurus's Avatar
    Join Date
    Apr 2008
    Posts
    10

    Re: Muting system sound

    With code or without code? >>>>

    you are too funny, take my bow koolsid
    into the forum, out of the forum

  6. #6

    Thread Starter
    Interweb adm/o/distrator Paul M's Avatar
    Join Date
    Nov 2006
    Location
    Australia, Melbourne
    Posts
    2,306

    Re: Muting system sound

    With code of course!

  7. #7
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: Muting system sound

    Quote 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:
    1. Private Declare Function waveOutSetVolume Lib "Winmm" (ByVal wDeviceID As Integer, ByVal dwVolume As Long) As Integer
    2. Private Declare Function waveOutGetVolume Lib "Winmm" (ByVal wDeviceID As Integer, dwVolume As Long) As Integer
    3. Private Sub Command1_Click()
    4.     Dim a, i As Long
    5.     Dim tmp As String
    6.     a = waveOutGetVolume(0, i)
    7.     tmp = "&h" & Right(Hex$(i), 4)
    8.     Text1 = CLng(tmp)
    9. End Sub
    10. Private Sub Command2_Click()
    11.     Dim a, i As Long
    12.     Dim tmp, vol As String
    13.     vol = Text1
    14.     tmp = Right((Hex$(vol + 65536)), 4)
    15.     vol = CLng("&H" & tmp & tmp)
    16.     a = waveOutSetVolume(0, vol)
    17. 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

  8. #8

    Thread Starter
    Interweb adm/o/distrator Paul M's Avatar
    Join Date
    Nov 2006
    Location
    Australia, Melbourne
    Posts
    2,306

    Re: Muting system sound

    That just mutes the sounds from the program itself not vista.

  9. #9

    Thread Starter
    Interweb adm/o/distrator Paul M's Avatar
    Join Date
    Nov 2006
    Location
    Australia, Melbourne
    Posts
    2,306

    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.

  10. #10

    Thread Starter
    Interweb adm/o/distrator Paul M's Avatar
    Join Date
    Nov 2006
    Location
    Australia, Melbourne
    Posts
    2,306

    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.

  11. #11

    Thread Starter
    Interweb adm/o/distrator Paul M's Avatar
    Join Date
    Nov 2006
    Location
    Australia, Melbourne
    Posts
    2,306

    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
  •  



Click Here to Expand Forum to Full Width