AudioDeviceController AudioDeviceController AudioDeviceController AudioDeviceController AudioDeviceController Class

Definition

Controls device settings on the microphone.

public : sealed class AudioDeviceController : IAudioDeviceController, IMediaDeviceController
struct winrt::Windows::Media::Devices::AudioDeviceController : IAudioDeviceController, IMediaDeviceController
public sealed class AudioDeviceController : IAudioDeviceController, IMediaDeviceController
Public NotInheritable Class AudioDeviceController Implements IAudioDeviceController, IMediaDeviceController
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

To get an instance of this object, retrieve the MediaCapture.AudioDeviceController property.

Note

: This class is not agile, which means that you need to consider its threading model and marshaling behavior. For more info, see Threading and Marshaling (C++/CX) and Using Windows Runtime objects in a multithreaded environment (.NET).

Properties

Muted Muted Muted Muted Muted

Mutes or unmutes the microphone.

VolumePercent VolumePercent VolumePercent VolumePercent VolumePercent

Gets or sets the volume of the microphone.

Methods

GetAvailableMediaStreamProperties(MediaStreamType) GetAvailableMediaStreamProperties(MediaStreamType) GetAvailableMediaStreamProperties(MediaStreamType) GetAvailableMediaStreamProperties(MediaStreamType) GetAvailableMediaStreamProperties(MediaStreamType)

Gets a list of the supported encoding properties for the device.

GetMediaStreamProperties(MediaStreamType) GetMediaStreamProperties(MediaStreamType) GetMediaStreamProperties(MediaStreamType) GetMediaStreamProperties(MediaStreamType) GetMediaStreamProperties(MediaStreamType)

Gets the encoding properties for the specified media stream type for the device.

SetMediaStreamPropertiesAsync(MediaStreamType, IMediaEncodingProperties) SetMediaStreamPropertiesAsync(MediaStreamType, IMediaEncodingProperties) SetMediaStreamPropertiesAsync(MediaStreamType, IMediaEncodingProperties) SetMediaStreamPropertiesAsync(MediaStreamType, IMediaEncodingProperties) SetMediaStreamPropertiesAsync(MediaStreamType, IMediaEncodingProperties)

Sets the encoding properties asynchronously for the specified media stream type for the device.