Delen via


AudioDeviceController Class

Definition

Controls device settings on the microphone.

public ref class AudioDeviceController sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
class AudioDeviceController final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
public sealed class AudioDeviceController
Public NotInheritable Class AudioDeviceController
Inheritance
Object Platform::Object IInspectable AudioDeviceController
Attributes
Implements

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

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

AudioCaptureEffectsManager

Gets the AudioCaptureEffectsManager associated with the AudioDeviceController.

Muted

Mutes or unmutes the microphone.

VolumePercent

Gets or sets the volume of the microphone.

Methods

GetAvailableMediaStreamProperties(MediaStreamType)

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

GetMediaStreamProperties(MediaStreamType)

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

SetMediaStreamPropertiesAsync(MediaStreamType, IMediaEncodingProperties)

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

Applies to