I vaguely recall that the mechanism for managing preferred audio device
changed, either with Vista or even perhaps XP (from 2K). I had a similar
‘requirement’ for a virtual audio device that was met by convincing the
customer that it was not possible (and that was at the time what I believed
to be the truth!)
I wish I could find original references I used but these are the key
elements of the ‘solution’ that I put together.
The virtual audio device dynamically updated its topology by dynamically
registering and deregistering the wave sub-device similar to say how a ‘jack
presence’ capable device might do so. In this way, *if* the device had been
selected by the user as the default audio device, it would dynamically
become the default audio device when it was usable and cease to be the
default audio device when unusable.
The INF controls which were supposed to tell the class installer to make the
device the default seemed to no longer have any effect. The only way I
found to get the device to be the default was to mark it as such in the CPL
applet with UI.
Good Luck,
Dave
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of sano@as-k.co.jp
Sent: Thursday, April 16, 2009 12:09 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] How to change the preferred audio device in Vista.
Tim Roberts wrote:
With difficulty, apparently. It’s just a registry setting, but the open
source package created specifically to do this job
(vachanger.sourceforge.net) works by bringing up the control panel and
programmatically clicking the appropriate buttons…
I tried vachanger. But, it is not work correctly in some case.
For example, the control panel has already been opened by user…
And, I know the APIs for changing the preferred audio device from the
application does not provided in Vista.
Is there only the way of the setting via the control panel?
Is it impossible to do that from the audio driver?
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer