Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IAudioFrameNativeFactory::CreateFromMFSample method

Creates an IAudioFrameNative from the provided IMFSample.

Syntax


HRESULT CreateFromMFSample(
  [in]  IMFSample *data,
  [in]  BOOL      forceReadOnly,
  [in]  REFIID    riid,
  [out] LPVOID    *ppv
);

Parameters

data [in]

Type: IMFSample*

The source buffer containing an audio frame.

forceReadOnly [in]

Type: BOOL

A value indicating whether the created software audio frame is read-only.

riid [in]

Type: REFIID

The IID of the IAudioFrameNative interface.

ppv [out]

Type: LPVOID*

When this method returns successfully, contains the requested interface.

Return value

Type: HRESULT

Returns S_OK on successful completion.

See also

IAudioFrameNativeFactory

 

 

Show: