共用方式為


IMediaRenderer::SetMuteAsync method (windows.media.streaming.h)

Instructs the DMR asynchronously to either mute or unmute the audio.

Syntax

HRESULT SetMuteAsync(
  [in]  ::boolean                              mute,
  [out] ABI::Windows::Foundation::IAsyncAction **value
);

Parameters

[in] mute

A reference to a boolean value that specifies the mute setting. A value of True specifies that mute is turned on, and a value of False specifies that it is turned off.

[out] value

Receives a reference to a PlaybackOperation object that is used to get results from the asynchronous operation.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK
The method succeeded.

Requirements

Requirement Value
Target Platform Windows
Header windows.media.streaming.h

See also

IMediaRenderer