Skip to content
This repository was archived by the owner on Mar 30, 2019. It is now read-only.
This repository was archived by the owner on Mar 30, 2019. It is now read-only.

Using the Source Reader in Asynchronous Mode #742

@Gawson

Description

@Gawson

As shown in MSDN https://msdn.microsoft.com/en-us/library/windows/desktop/gg583871(v=vs.85).aspx SourceReader is able to asynchonous sample read. How can it be achieved in Sharpdx?

  1. How to create and set async callback? There is no IMFSourceReaderCallback interface, only the SourceReaderCallback class but when class inherits it you cant override methods and base class requires native pointer (to what?).

  2. Following docs in MSD all out parameters in ReadSample method of SourceReader should be null to use callback and async mode but out parameters can't be set null. Is this inconsistent mapping? In MediaFoundation .Net there is separate ReadSampleAsync method.

Both of problems seems like potetnial bugs.
Am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions