Windows Media Format SDK banner art
PreviousNext

IWMReaderCallback::OnSample

The OnSample method is called during the reading of a file (due to a Start call) that contains new uncompressed data is available.

Syntax

HRESULT OnSample(
  DWORD  dwOutputNum,
  QWORD  cnsSampleTime,
  QWORD  cnsSampleDuration,
  DWORD  dwFlags,
  INSSBuffer*  pSample,
  void*  pvContext

);

Parameters

  dwOutputNum

[in]  Double word containing the output 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 an INSSBuffer object containing the sample.

  pvContext

[in]  Universal pointer to the context.  This context pointer will match the pointer given to the IWMReader::Start method.

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.