[wdmaudiodev] Re: System and application sounds difference?

  • From: Matthew van Eerde <mateer@xxxxxxxxxxxxx>
  • To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Wed, 10 Nov 2010 20:35:26 +0000

In Windows 7, you do this by raising a KSEVENT_PINCAPS_FORMATCHANGE in your 
driver.

A more dramatic way to do this, which works in all versions of Windows, is to 
unregister and reregisterg the driver interface (which effectively tears down 
the audio device and builds it up again.)

-----Original Message-----
From: wdmaudiodev-bounce@xxxxxxxxxxxxx 
[mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx] On Behalf Of Robert Bielik
Sent: Wednesday, November 10, 2010 12:17 PM
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: [wdmaudiodev] Re: System and application sounds difference?

Matthew van Eerde skrev 2010-11-10 17:49:
> I see.
>
> I ask because there is, by design, no supported way for an application to 
> change the default device.  (Imagine if two applications wanted to change the 
> default device...) The user can change the default device in the control 
> panel.

Well the user opens my application, thereby _explicitly_ wanting to use it. So 
I change the default device. This is transparent towards the user.
Otherwise, he/she will have to:
a) Change the default device to mine
b) Change the configuration of thetarget sound device
c) Change the configuration of the VAD device to match step in b)

Hardly a transparent user experience...

>
> There's also no supported way for an application to change the default device 
> format.  The user can change the default device in the control panel, and the 
> device can change what formats it supports at runtime, which will prompt a 
> reevaluation of the default device.

Ok, I've asked this before on the list. How exactly am I supposed to invalidate 
the device so that Windows will requery supported formats ?
The only way I found in Vista is to delete the default format entries under 
MMDevices/Audio/Render, and that's not documented/supported(?) either.
Otherwise it will stick with 2ch, even though I've changed the device to 5.1 
surround.

/Rob
******************

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/


******************

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: