Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Muting sound

Muting sound

Scheduled Pinned Locked Moved C#
csharpquestion
6 Posts 3 Posters 6 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lapje
    wrote on last edited by
    #1

    Hi, I want to be able to mute and unmute sound in Windows from my C# app. However, I have no idea where to start. Can someone give me some good links or sample code? Thanks in advance

    M B L 3 Replies Last reply
    0
    • L Lapje

      Hi, I want to be able to mute and unmute sound in Windows from my C# app. However, I have no idea where to start. Can someone give me some good links or sample code? Thanks in advance

      M Offline
      M Offline
      miah alom
      wrote on last edited by
      #2

      This is a CPP article and sample. http://www.codeproject.com/com/VoiceMeter.asp

      1 Reply Last reply
      0
      • L Lapje

        Hi, I want to be able to mute and unmute sound in Windows from my C# app. However, I have no idea where to start. Can someone give me some good links or sample code? Thanks in advance

        B Offline
        B Offline
        brunoconde
        wrote on last edited by
        #3

        Hello. I also dont know or worked so far with the system Sound but i think that is only possible with Microsoft DirectX. Download it and try. Bruno Conde ;) pharaoh

        M L 2 Replies Last reply
        0
        • B brunoconde

          Hello. I also dont know or worked so far with the system Sound but i think that is only possible with Microsoft DirectX. Download it and try. Bruno Conde ;) pharaoh

          M Offline
          M Offline
          miah alom
          wrote on last edited by
          #4

          winmm.lib is the key. It has the API to control the System Volume.

          1 Reply Last reply
          0
          • B brunoconde

            Hello. I also dont know or worked so far with the system Sound but i think that is only possible with Microsoft DirectX. Download it and try. Bruno Conde ;) pharaoh

            L Offline
            L Offline
            Lapje
            wrote on last edited by
            #5

            Just tried the dx sdk, but it seems it cannot handle system volume or something :S Going for the lib now :)

            1 Reply Last reply
            0
            • L Lapje

              Hi, I want to be able to mute and unmute sound in Windows from my C# app. However, I have no idea where to start. Can someone give me some good links or sample code? Thanks in advance

              L Offline
              L Offline
              Lapje
              wrote on last edited by
              #6

              A good sleep does good on you thinking. I found out my own how to solve this problem. Just emulate the Mute button on your keyboard, and it will do ;)

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups