Windows Media Format SDK banner art
PreviousNext

IWMReaderAdvanced::SetAllocateForOutput

The SetAllocateForOutput method sets a flag indicating whether the reader will use IWMReaderCallbackAdvanced::AllocateForOutput to allocate buffers for output samples.

Syntax

HRESULT SetAllocateForOutput(
  DWORD  dwOutputNum,
  BOOL  fAllocate
);

Parameters

  dwOutputNum

[in]  Double word containing the output number.

  fAllocate

[in]  Flag indicating the allocated buffer.  Specify TRUE if the reader will use IWMReaderAdvancedCallback to allocate samples.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.

Remarks

You can provide buffers for any of the outputs (for instance, DirectDraw buffers). The actual allocation is on the IWMReaderCallbackAdvanced interface.

See Also

PreviousNext


© 1999 Microsoft Corporation. All rights reserved.