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

  • From: Eugene Muzychenko <eugene@xxxxxxxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Wed, 13 Aug 2014 18:33:43 +0700

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/

Other related posts: