IAudioClient2::SetClientProperties Method

Sets the properties of the audio stream by populating an AudioClientProperties structure.

Syntax

public:
HRESULT SetClientProperties(
         const AudioClientProperties *pProperties
)  

Parameters

pProperties
Type: AudioClientProperties *

[in] Pointer to an AudioClientProperties structure.

Return value

Type: HRESULT 

The SetClientProperties method returns S_OK to indicate that it has completed successfully. Otherwise it returns an appropriate error code.

Refer to WASAPI error codes.

Requirements

Header: Declared in audioclient.h.

Library: Use mmdevapi.lib.

See also

IAudioClient2

IAudioClient2 Members