Share via


IWMReaderAllocatorEx interface (wmsdkidl.h)

[The feature associated with this page, Windows Media Format 11 SDK, is a legacy feature. It has been superseded by Source Reader and Sink Writer. Source Reader and Sink Writer have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use Source Reader and Sink Writer instead of Windows Media Format 11 SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The IWMReaderAllocatorEx interface provides expanded alternatives to the AllocateForOutput and AllocateForStream methods of the IWMReaderCallbackAdvanced interface. This interface is implemented by the application, which passes this interface pointer to the synchronous reader object by calling IWMSyncReader2::SetAllocateForStream or SetAllocateForOutput.

Inheritance

The IWMReaderAllocatorEx interface inherits from the IUnknown interface. IWMReaderAllocatorEx also has these types of members:

Methods

The IWMReaderAllocatorEx interface has these methods.

 
IWMReaderAllocatorEx::AllocateForOutputEx

The AllocateForOutputEx method allocates a user-created buffer for samples delivered to the IWMReaderCallback::OnSample method.
IWMReaderAllocatorEx::AllocateForStreamEx

The AllocateForStreamEx method allocates a user-created buffer for samples delivered to the IWMReaderCallbackAdvanced::OnStreamSample method.

Requirements

Requirement Value
Target Platform Windows
Header wmsdkidl.h

See also

Allocating Buffers for File Reading

IWMReaderAdvanced Interface

IWMReaderCallback Interface

Interfaces

Reader Object