[wdmaudiodev] Re: AVStream audio render issue

  • From: r02525073@xxxxxxxxxx
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Tue, 24 Sep 2019 10:34:38 +0800

No, I have not tested the HLK yet.
It is not currently possible to enter DispatchProcess and the leading edge stream pointer cannot be obtained.
I think the current driver function is not complete, so the HLK test has not been done yet.


引述 Matthew van Eerde <dmarc-noreply@xxxxxxxxxxxxx>:

Have you run the HLK tests?

________________________________
From: wdmaudiodev-bounce@xxxxxxxxxxxxx <wdmaudiodev-bounce@xxxxxxxxxxxxx> on behalf of r02525073@xxxxxxxxxx <r02525073@xxxxxxxxxx>
Sent: Monday, September 23, 2019 12:27:15 AM
To: wdmaudiodev@xxxxxxxxxxxxx <wdmaudiodev@xxxxxxxxxxxxx>
Subject: [wdmaudiodev] AVStream audio render issue

Dear all,

I am developing an audio render using AVStream.
It is now correctly displayed on the Playback Device.
Then I used Graphedit to test.
When the render filter in the "Audio Renderers" category is selected,
the DispatchProcess of the pin is not called.
I suspect that the pin did not receive the data, so the
DispatchProcess was not called.
But if I use "WDM Streaming Rendering Device" then everything works fine.
I have confirmed that the state of the pin is already "KSSTATE_RUN".

Please help me solve this problem, thank you.

Here is the pin DESCRIPTOR for this driver:

static
const
KSPIN_DESCRIPTOR_EX
ksCaptureFilterPinDescriptors[] = {

     { //Audio Input Pin
       &ksCapturePinDispatch,                    // Dispatch
       NULL,                                     // AutomationTable
       { // PinDescriptor
         DEFINE_KSPIN_DEFAULT_INTERFACES,        // Interfaces
         DEFINE_KSPIN_DEFAULT_MEDIUMS,           // Mediums
         SIZEOF_ARRAY(ksAudioPinDataRanges),     // Range Count
         ksAudioPinDataRanges,                   // Ranges
         KSPIN_DATAFLOW_IN,                     // Dataflow
         KSPIN_COMMUNICATION_SINK,               // Communication
(both source and sink)
         &KSCATEGORY_AUDIO,                      // Category
         NULL, // Name
         0                                       // Reserved
       },
       KSPIN_FLAG_FIXED_FORMAT | KSPIN_FLAG_RENDERER |
KSPIN_FLAG_PROCESS_IN_RUN_STATE_ONLY, // Flags
       1,                                        // Instances Possible
       0,                                        // Instances Necessary
       &ksAudioPinAllocatorFraming,              // Allocator Framing
reinterpret_cast<PFNKSINTERSECTHANDLEREX>(CapturePin::IntersectHandler)
     },

     { // Audio Output Pin
       NULL,                                     // Dispatch
       NULL,                                     // AutomationTable
       { // PinDescriptor
         DEFINE_KSPIN_DEFAULT_INTERFACES,        // Interfaces
         DEFINE_KSPIN_DEFAULT_MEDIUMS,           // Mediums
         SIZEOF_ARRAY(ksPinDataRanges),
       // Range Count
         ksPinDataRanges,                                   // Ranges
         KSPIN_DATAFLOW_OUT,                      // Dataflow
         KSPIN_COMMUNICATION_NONE,               // Communication
         &KSNODETYPE_LINE_CONNECTOR,             // Category
         NULL, // Name
         0                                       // Reserved
       },
       KSPIN_FLAG_DO_NOT_USE_STANDARD_TRANSPORT, // Flags
       1,                                        // Instances Possible
       0,                                        // Instances Necessary
       NULL,                                     // Allocator Framing
       NULL                                      // IntersectHandler
     }

};

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

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://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.wdmaudiodev.com%2F&amp;data=02%7C01%7CMatthew.van.Eerde%40microsoft.com%7Cb7cf0edb927a4ce5028008d73ff78ba5%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637048204811344453&amp;sdata=BMgxdWGdsxbc01PtZflcw9r3QVSbcZgwN1RoeSF3b4o%3D&amp;reserved=0




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

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: