IAsyncReader Interface

Windows Mobile 6.5
A version of this page is also available for

This interface allows multiple overlapped reads from different positions in the media stream. This interface is supported by source filters.

Note that during connection an output pin supporting the IAsyncReader should check whether its QueryInterface method is called asking for the IAsyncReader interface. If it is not, then the output pin should fail the connect unless it establishes some other transport to use during the connection.

Implement this interface on a pin if your filter reads data of media type MEDIATYPE_Stream from some source.

A parser, such as a WAVE parser filter, can use this interface to read from a filter that reads from a file, the network, or memory.

The following table shows the methods that appear in the Vtable beneath the standard COM methods inherited from IUnknown.

Method Description


Retrieves the actual allocator to be used.


Queues a request for data.


Blocks until the next sample is completed or the time-out occurs.


Performs an aligned synchronized read.


Performs a synchronized read.


Retrieves the total length of the stream, and the currently available length.


Causes all outstanding reads to return.


Ends the flushing operation.

Windows Embedded CEWindows CE 2.12 and later
Windows MobileWindows Mobile Version 5.0 and later
NoteMicrosoft DirectShow applications and DirectShow filters have different include file and Library requirements
For more information, see Setting Up the Build Environment

Community Additions