Microsoft DirectX 8.1 (C++)

IAudioData::SetFormat

The SetFormat method sets the current data format.

Syntax

HRESULT SetFormat(
    const WAVEFORMATEX *lpWaveFormat
    );

Parameters

lpWaveFormat

[in] Pointer to a WAVEFORMATEX structure that will contain the current data format.

Return Value

Returns an HRESULT value, which can include the following values.

Return code Description
E_POINTER Invalid pointer argument.
E_INVALIDARG Invalid format.
S_OK Success.

See Also