[wdmaudiodev] Changing default endpoint and speaker configuration on Vista

  • From: "Michael R. Preston" <mike@xxxxxxxxxxxxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Mon, 16 Oct 2006 17:09:01 -0700

Can anyone (possibly someone from Microsoft) answer this?

I've been looking through all the MMDevice-related API documentation. In IMMDeviceEnumerator, there's a function called GetDefaultAudioEndpoint() to get the default audio endpoint. How can you programmatically change the default audio endpoint? There's no corresponding SetDefaultAudioEndpoint() function. Similarly, there doesn't seem to be any function to set the endpoint's speaker configuration. I've tried using the high-level DirectSound interface, or calling Activate on the IMMDevice interface to get a pointer to IDirectSound, but neither of these seems to have any effect. The call to SetSpeakerConfig() succeeds, but doesn't actually change anything. Is there any way other than by using the Sound control panel?

Thanks,
Mike Preston
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|            Mike Preston          | Home/Office: (360)756-1655 |
| E-mail: mike@xxxxxxxxxxxxxxxxxxx |        Cell: (360)303-9331 |
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|     The man who follows the crowd will usually get no         |
|     further than the crowd.  The man who walks alone is       |
|     likely to find himself in places no one has ever been.    |
|                     -- Alan Ashley-Pitt                       |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
******************

WDMAUDIODEV addresses:
Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx
Subscribe:    mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe
Unsubscribe:  mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe
Moderator:    mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx

URL to WDMAUDIODEV page:
http://www.wdmaudiodev.com/

Other related posts: