[wdmaudiodev] Re: Shared mode recording doesn't work if CurrentCount is nonzero

  • From: Harry Graham <HarryGraham@xxxxxxxxxx>
  • To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Wed, 13 Aug 2014 14:18:03 +0000

Eugene,

The scenario you suggest definitely works on Windows 8.1, as I have confirmed 
this with an AVStream audio capture driver which supports multiple simultaneous 
clients.  I can capture from the raw device (under WDM streaming capture 
devices) and the system audio device (under Audio Capture sources) for the same 
device at the same time.

For this reason I do not believe that you have encountered an Audio Subsystem 
bug.

Harry

-----Original Message-----
From: wdmaudiodev-bounce@xxxxxxxxxxxxx 
[mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx] On Behalf Of Eugene Muzychenko
Sent: Wednesday, August 13, 2014 4:34 AM
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: [wdmaudiodev] Shared mode recording doesn't work if CurrentCount is 
nonzero

Hello!

Audio Subsystem in Windows 6.x (from Vista to 8.1) never checks PossibleCount 
in KSPIN_CINSTANCES before trying to create a capture pin instance. If 
CurrentCount is nonzero (for example, if another KS client already got a pin 
instance), audio subsystem always returns the "device in use" error, even if 
PossibleCount value is greater than CurrentCount value.

If shard mode recording is started first, while CurrentCount is zero, Audio 
Subsystem successfully allocates a pin instance and other KS clients can 
allocate them too, if there are available instances.

For most modern audio drivers that don't support more than a singe instance, 
such behavior is normal but it is strange for a driver that supports multiple 
pin instances.

It there a reason for such Audio Subsystem behavior, or it is simply a bug?

Regards,
Eugene

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

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: