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 / C++ / MFC
  4. Controlling Sound?

Controlling Sound?

Scheduled Pinned Locked Moved C / C++ / MFC
question
7 Posts 4 Posters 0 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.
  • R Offline
    R Offline
    ritz1234
    wrote on last edited by
    #1

    Hello dear friend, How can we control the system sound. I want to control sound from my application. I want following things to handle from the application 1)Mute/Unmute 2)Play/Pause 3)Adjustring the system volume. How can I do these things? Sample code would be appreciated. Thanks in Advance.

    ritz1234

    H D 2 Replies Last reply
    0
    • R ritz1234

      Hello dear friend, How can we control the system sound. I want to control sound from my application. I want following things to handle from the application 1)Mute/Unmute 2)Play/Pause 3)Adjustring the system volume. How can I do these things? Sample code would be appreciated. Thanks in Advance.

      ritz1234

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      See Audio Mixer Functions Demo[^].

      R 1 Reply Last reply
      0
      • H Hamid Taebi

        See Audio Mixer Functions Demo[^].

        R Offline
        R Offline
        ritz1234
        wrote on last edited by
        #3

        Thanks for the help Hamid :rose: :rose: :rose: I've checked the exe's for mute and volume control and it works.I'll integrate it with my application. But what about the play/pause? Thanks very much.

        ritz1234

        H 1 Reply Last reply
        0
        • R ritz1234

          Thanks for the help Hamid :rose: :rose: :rose: I've checked the exe's for mute and volume control and it works.I'll integrate it with my application. But what about the play/pause? Thanks very much.

          ritz1234

          H Offline
          H Offline
          Hamid Taebi
          wrote on last edited by
          #4

          Play and puase of other programs or your program?

          R 1 Reply Last reply
          0
          • H Hamid Taebi

            Play and puase of other programs or your program?

            R Offline
            R Offline
            ritz1234
            wrote on last edited by
            #5

            As in the windows xp media player we can play/pause the song this what I want should be handled from the application.

            ritz1234

            M 1 Reply Last reply
            0
            • R ritz1234

              Hello dear friend, How can we control the system sound. I want to control sound from my application. I want following things to handle from the application 1)Mute/Unmute 2)Play/Pause 3)Adjustring the system volume. How can I do these things? Sample code would be appreciated. Thanks in Advance.

              ritz1234

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #6

              ritz1234 wrote:

              3)Adjustring the system volume. How can I do these things?

              Here is one example.

              "Love people and use things, not love things and use people." - Unknown

              "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

              1 Reply Last reply
              0
              • R ritz1234

                As in the windows xp media player we can play/pause the song this what I want should be handled from the application.

                ritz1234

                M Offline
                M Offline
                Mark Salsbery
                wrote on last edited by
                #7

                play/pause is for devices, not for sound. For those, maybe look into Waveform Audio[^], MCI[^], or DirectX Audio[^]. Mark

                Mark Salsbery Microsoft MVP - Visual C++ :java:

                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