Microsoft DirectX 8.1 (C++) |
Creates an audio stream sample for use with the specified stream.
Syntax
HRESULT CreateSample(
IAudioData *pAudioData,
DWORD dwFlags,
IAudioStreamSample **ppSample
);
Parameters
pAudioData
[in] Pointer to an IAudioData container. IAudioData objects can be referenced by samples in more than one stream.
dwFlags
[in] Reserved for flag data. Must be zero.
ppSample
[out] Address of a pointer to the new IAudioStreamSample interface.
Return Value
Returns S_OK if successful or E_POINTER if one or more of the required parameters are NULL.
Remarks
The pAudioData object defines the data's format.
See Also