Results 1 to 5 of 5

Thread: {RESOLVED} Change Default Audio Device

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2005
    Posts
    1,521

    Resolved {RESOLVED} Change Default Audio Device

    Does anyone know of a way I could change the default audio device in Win XP at runtime? The user will have 2 options. Either the integrated audio, or a sound card. It will be the same sound card and integrated audio everytime.

    Thanks
    Last edited by mpdeglau; Dec 13th, 2005 at 10:28 AM.

  2. #2

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2005
    Posts
    1,521

    Re: Change Default Audio Device

    I'll take wild stabs and other languages.

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Change Default Audio Device

    I would guess that it would be a registry setting. I just looked at my default playback device in the Control Panel and it was named "NVIDIA(R) nForce(TM) Audio". I then did a search through the registry and that string was found under a number of keys. I suggest that you do something similar and note each key that contains that value. Then change your setting from the Control Panel and check again to see which have changed.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Change Default Audio Device

    Actually, I think I just found it. I changed it to another device that was less common and the search went straight to HKCU\Software\Microsoft\Multimedia\Sound Mapper. There are values for Playback and Record that correspond to the same values in the Control Panel Sound applet. You will need to make sure that you use the exact names as listed in the Sound applet I would think, which Windows presumably gets from the hardware itself or, more likely, the hardware driver and stores elsewhere in the Registry.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2005
    Posts
    1,521

    Re: Change Default Audio Device

    Thanks JM. That did the trick.

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