Windows Vista Forums

Changing default Sound Device

  1. #1



    Newbie
    Join Date : Dec 2009
    Posts : 5
    Vista Home 32bit
    Local Time: 09:16 AM

    Changing default Sound Device

    Is there any possibility of changing the sound device programatically in Windows 7?
    Or atleast to make the device as the default sound device during installation?
    In Vista, I could use SetupPreferredAudioDevice key in INF file to make it as default at the time of installation, but I could see that this key is no more valid in Windows 7. Is there any alternative for this?

      My System SpecsSystem Spec

  2.   


  3. #2
    MDA400's Avatar

    Nvidia and Intel
    Join Date : Jun 2009
    Bloomington, MN
    Posts : 216
    Vista Home Premium x64 SP2
    Local Time: 09:46 PM
    usa us minnesota

     

    Re: Changing default Sound Device

    Note that you shouldve asked on this website instead - Windows 7 Forums

    But, to answer your question, Vista and Windows 7 have the option to allow any program to use a particular device automatically. Even when installing any new program.

    Changing default Sound Device-cvbn.jpg (Example) (in the taskbar sound icon)


    Changing default Sound Device-sdfg.jpg (Set default device here, unless you only have one input/output deviced enabled)

      My System SpecsSystem Spec

  4. #3



    Newbie
    Join Date : Dec 2009
    Posts : 5
    Vista Home 32bit
    Local Time: 09:16 AM


      Thread Starter

    Re: Changing default Sound Device

    I am really sorry for posting it here.

    But here we are doing that manually, right?'
    I am having an application which uses a virtual audio driver and I want that device to be the default sound device when the application starts. So it will be really helpful if can change it programatically. Is that possible in vista and win 7?

      My System SpecsSystem Spec

  5. #4
    MDA400's Avatar

    Nvidia and Intel
    Join Date : Jun 2009
    Bloomington, MN
    Posts : 216
    Vista Home Premium x64 SP2
    Local Time: 09:46 PM
    usa us minnesota

     

    Re: Changing default Sound Device

    Quote Originally Posted by arunsankar View Post
    I am really sorry for posting it here.

    But here we are doing that manually, right?'
    I am having an application which uses a virtual audio driver and I want that device to be the default sound device when the application starts. So it will be really helpful if can change it programatically. Is that possible in vista and win 7?
    By having those box's checked (they are already on default), the program should automatically use THAT default sound device, unless there is an unsupported feature with the program and sound device.

      My System SpecsSystem Spec

  6. #5



    Newbie
    Join Date : Dec 2009
    Posts : 5
    Vista Home 32bit
    Local Time: 09:16 AM


      Thread Starter

    Re: Changing default Sound Device

    These options are checked in my system and I can also set a device as the default one manually. But I am unable to set this as programatically.

      My System SpecsSystem Spec

  7. #6
    MDA400's Avatar

    Nvidia and Intel
    Join Date : Jun 2009
    Bloomington, MN
    Posts : 216
    Vista Home Premium x64 SP2
    Local Time: 09:46 PM
    usa us minnesota

     

    Re: Changing default Sound Device

    Quote Originally Posted by arunsankar View Post
    These options are checked in my system and I can also set a device as the default one manually. But I am unable to set this as programatically.
    Any program that uses sound, AUTOMATICALLY uses the default sound device that you choose in that area.

    If you have installed a new sound device (soundcard), you mainly want to just use the hardware's set of sound device's and disable the onboard sound in your BIOS.

    Usually, if the program has a VOIP function (Games for Windows - LIVE, MSN messenger, Steam-based games) in it or either someone uses a DVD codec application (PowerDVD, Nero, Etc.), most of the time they can set what device for THAT program to use when playing/using that program (there is usually an options menu with that function there).

    If this still doesnt answer your question, exactly what are you trying to do with a sound device regarding Windows 7?

      My System SpecsSystem Spec

  8. #7



    Newbie
    Join Date : Dec 2009
    Posts : 5
    Vista Home 32bit
    Local Time: 09:16 AM


      Thread Starter

    Re: Changing default Sound Device

    As I mentioned earlier, I have a virtual audio driver which captures the data and do some processing on audio samples and then routes it to one of the playback sound device. For this, I need this virtual driver to be the default sound device when I am running my application. But I don't want the user to change the sound device, instead I want to insert some code in my application so as to change the sound device. This is very much possible in XP. But it is not supported in Vista and Windows7. In Vista, I could use SetupPreferredAudioDevice key in INF file to make it as default at the time of installation, but I could see that this key is no more valid in Windows 7. So I want to know whether there is any alternative solution for this?

      My System SpecsSystem Spec

  9. #8
    MDA400's Avatar

    Nvidia and Intel
    Join Date : Jun 2009
    Bloomington, MN
    Posts : 216
    Vista Home Premium x64 SP2
    Local Time: 09:46 PM
    usa us minnesota

     

    Re: Changing default Sound Device

    Forgive me lol. your programming an app. right? Then you'd have to look that up somewhere else because i have no familiarity with that. Sorry.

    Last edited by MDA400; 19 Dec 2009 at 08:59 PM.
      My System SpecsSystem Spec

  10. #9



    Newbie
    Join Date : Dec 2009
    Posts : 5
    Vista Home 32bit
    Local Time: 09:16 AM


      Thread Starter

    Re: Changing default Sound Device

    Its ok MDA400.
    Thanks a lot for your kind attention...

      My System SpecsSystem Spec


Changing default Sound Device
Similar Threads
Thread Forum
Problem with sound (Set default device) Gaming
Default Sound Device Issue Vista hardware & devices
Default Sound Device Issue Sound & Audio
How to prevent default audio device from changing to SRS? Sound & Audio
Default Sound Playback Device Changes itself Vista hardware & devices