Windows Media Format SDK banner art
PreviousNext

IWMReaderCallbackAdvanced::OnStreamSample

The OnStreamSample method delivers stream samples from the source file without decompressing them first.

Syntax

HRESULT OnStreamSample(
  WORD  wStreamNum,
  QWORD  cnsSampleTime,
  QWORD  cnsSampleDuration,
  DWORD  dwFlags,
  INSSBuffer*  pSample,
  void*  pvContext
);

Parameters

  wStreamNum

[in]  Word containing the stream number.

  cnsSampleTime

[in]  QWORD containing the sample time.

  cnsSampleDuration

[in]  QWORD containing the sample duration.

  dwFlags

[in]  Double word containing the flags.

  pSample

[in]  Pointer to a sample stored in an INSSBuffer object.

  pvContext

[in]  Universal pointer to the context.

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.

To get samples for a particular stream, call IWMReaderAdvanced::SetReceiveStreamSamples.

See Also

PreviousNext


© 1999 Microsoft Corporation. All rights reserved.