Windows Media Format SDK banner art
PreviousNext

IWMWriter::WriteSample

The WriteSample method passes in uncompressed data to be compressed and appended to the Windows Media file that is being created.

Syntax

HRESULT WriteSample(
  DWORD  dwInputNum,
  QWORD  cnsSampleTime,
  DWORD  dwFlags,
  INSSBuffer*  pSample
);

Parameters

  dwInputNum

[in]  Double word containing the input number.

  cnsSampleTime

[in]  QWORD containing the sample time.

  dwFlags

[in]  Double word containing the flags.

  pSample

[in]  Pointer to a sample.

Return Values

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

Return code Meaning
E_INVALIDARG The dwInputNum value is greater than the highest index number.
E_UNEXPECTED The method failed for an unspecified reason.
NS_E_INVALID_STATE The writer is not in a configurable state.

See Also

PreviousNext


© 1999 Microsoft Corporation. All rights reserved.