Windows Media Format SDK banner art
PreviousNext

IWMReaderCallbackAdvanced::AllocateForStream

The AllocateForOutput method allocates buffers for stream samples delivered to IWMReaderCallbackAdvanced::OnStreamSample.

Syntax

HRESULT AllocateForStream(
  WORD  wStreamNum,
  DWORD  cbBuffer,
  INSSBuffer**  ppBuffer,
  void*  pvContext
);

Parameters

  wStreamNum

[in]  Word containing the stream 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.

Remarks

Stream numbers may only be in the range of 1-64.

See Also

PreviousNext


© 1999 Microsoft Corporation. All rights reserved.