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. Database & SysAdmin
  3. System Admin
  4. Method to change default audio device programmatically

Method to change default audio device programmatically

Scheduled Pinned Locked Moved System Admin
helpquestion
5 Posts 2 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.
  • S Offline
    S Offline
    StarMeteor
    wrote on last edited by
    #1

    Hi All, currently i am developing an application for audio playback, including local and online resources. I planned to use WMP SDK to help, however, one of my function needs me to be able to select/change the default audio device, however, it is not support by the SDK. I would like to know is there any other method to do so? thanks a lot

    P 1 Reply Last reply
    0
    • S StarMeteor

      Hi All, currently i am developing an application for audio playback, including local and online resources. I planned to use WMP SDK to help, however, one of my function needs me to be able to select/change the default audio device, however, it is not support by the SDK. I would like to know is there any other method to do so? thanks a lot

      P Offline
      P Offline
      progload
      wrote on last edited by
      #2

      StarMeteor, Change the registry settings in: HKCU\Software\Microsoft\Multimedia\Sound Mapper To the other device by "Name" in the keys - Playback and Record. hope that helps.. progload

      S 1 Reply Last reply
      0
      • P progload

        StarMeteor, Change the registry settings in: HKCU\Software\Microsoft\Multimedia\Sound Mapper To the other device by "Name" in the keys - Playback and Record. hope that helps.. progload

        S Offline
        S Offline
        StarMeteor
        wrote on last edited by
        #3

        Thanks for you reply :) however, I found a problem ... I use regedit to look into registy but fail to locate the key you mention.... any suggestion? Thanks

        P 1 Reply Last reply
        0
        • S StarMeteor

          Thanks for you reply :) however, I found a problem ... I use regedit to look into registy but fail to locate the key you mention.... any suggestion? Thanks

          P Offline
          P Offline
          progload
          wrote on last edited by
          #4

          StarMeteor, Yes, my mistake, apparently that only works with a soundblaster or compatable card installed. Sorry, I'm no expert with the MP9 sdk and I don't have two audio devices installed so I've got no way to test this but in the IWMEncDeviceControl.GetInput and IWMEncDeviceControl.SetInput functions it looks like this is where microsoft is doing that (IWMEncDeviceControl Object). Sorry I can't help you more, Take a look and see if this is what your looking for. (Notice the audio devices.. not the video devices) http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmencode/htm/iwmencdevicecontrolobject.asp?frame=true[^] progload

          S 1 Reply Last reply
          0
          • P progload

            StarMeteor, Yes, my mistake, apparently that only works with a soundblaster or compatable card installed. Sorry, I'm no expert with the MP9 sdk and I don't have two audio devices installed so I've got no way to test this but in the IWMEncDeviceControl.GetInput and IWMEncDeviceControl.SetInput functions it looks like this is where microsoft is doing that (IWMEncDeviceControl Object). Sorry I can't help you more, Take a look and see if this is what your looking for. (Notice the audio devices.. not the video devices) http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmencode/htm/iwmencdevicecontrolobject.asp?frame=true[^] progload

            S Offline
            S Offline
            StarMeteor
            wrote on last edited by
            #5

            Really thanks for your help ^^

            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