[wdmaudiodev] Re: Other strangeness in PortCls and AudioDG

  • From: "Matthew van Eerde" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "Matthew.van.Eerde" for DMARC)
  • To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Mon, 6 Aug 2018 20:31:02 +0000

_WITH_NOTIFICATION clients, including audiodg.exe in shared mode, or audio 
applications in either exclusive mode or offload mode, need to do the 
“alignment dance” to handle this problem. This dance is described here:

https://blogs.msdn.microsoft.com/matthew_van_eerde/2009/04/03/sample-wasapi-exclusive-mode-event-driven-playback-app-including-the-hd-audio-alignment-dance/

Also see the DEVPKEY_KsAudio_PacketSize_Constraints property and 
KSAUDIO_PACKETSIZE_CONSTRAINTS2.

https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/content/ksmedia/ns-ksmedia-_ksaudio_packetsize_constraints2

From: Eugene Muzychenko<mailto:reg.wad@xxxxxxxxxxxxxx>
Sent: Friday, August 3, 2018 7:19 AM
To: Matthew van Eerde<mailto:wdmaudiodev@xxxxxxxxxxxxx>
Subject: [wdmaudiodev] Re: Other strangeness in PortCls and AudioDG

Hello Matthew,

Could you please comment the second part of my first message in this
topic?

===================
if the driver returns actual buffer size greater than requested in
KSPROPERTY_RTAUDIO_BUFFER_WITH_NOTIFICATION, AudioDG immediately
closes pin instance and returns "unspecified error" to its client.
===================

Is such AudioDG behavior expected, or it is 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:
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.wdmaudiodev.com%2F&amp;data=02%7C01%7Cmatthew.van.eerde%40microsoft.com%7C20518cb6f49348b592e808d5f94c2b9a%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C1%7C636689027908252637&amp;sdata=whsbgEIV%2FwDRSZcKbxxYLoLKrloYYcu2t1n4%2F6vWO4A%3D&amp;reserved=0

Other related posts: