Windows Media Format SDK banner art
PreviousNext

IWMWriter::AllocateSample

The AllocateSample method allocates a buffer that can be used to provide samples to the writer. This is optional; any INSSBuffer object can be used for this purpose.

Syntax

HRESULT AllocateSample(
  DWORD  dwSampleSize,
  INSSBuffer**  ppSample
);

Parameters

  dwSampleSize

[in]  Double word containing the sample size.

  ppSample

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

Return Values

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

Return code Meaning
NS_E_INVALID_STATE The writer cannot currently be run.

Remarks

This method is optional; developers are free to create and allocate their own buffer class.

See Also

PreviousNext


© 1999 Microsoft Corporation. All rights reserved.