Windows Media Format SDK banner art
PreviousNext

IWMReaderCallbackAdvanced::AllocateForOutput

The AllocateForOutput method allocates buffers for samples delivered to IWMReader::OnSample.

Syntax

HRESULT AllocateForOutput(
  DWORD  dwOutputNum,
  DWORD  cbBuffer,
  INSSBuffer**  ppBuffer,
  void*  pvContext
);

Parameters

  dwOutputNum

[in]  Double word containing the output number.

  cbBuffer

[in]  Count of bytes in the buffer.

  ppBuffer

[out]  If the method succeeds, returns a pointer to a pointer to an INSSBuffer object.

  pvContext

[in]  Universal pointer to the context.  The context matches the context passed to IWMReader::Start.

Return Values

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

See Also

PreviousNext


© 1999 Microsoft Corporation. All rights reserved.