AudioDeviceController Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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. |