Controls device settings on the microphone.
The AudioDeviceController class has these types of members:
The AudioDeviceController class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.
|GetAvailableMediaStreamProperties||Gets a list of the supported encoding properties for the device.|
|GetMediaStreamProperties||Gets the encoding properties for the specified media stream type for the device.|
|SetMediaStreamPropertiesAsync||Sets the encoding properties asynchronously for the specified media stream type for the device.|
The AudioDeviceController class has these properties.
|Read/write||Mutes or unmutes the microphone.|
|Read/write||Gets or sets the volume of the microphone.|
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).
The following code shows how to get an AudioDeviceController from a MediaCapture object.
var audioDev = null; var captureDev = null; captureDev = new Windows.Media.Capture.MediaCapture(); audioDev = captureDev.audioDeviceController;
Minimum supported client
|Windows 8 [Windows Store apps only]|
Minimum supported server
|Windows Server 2012 [Windows Store apps only]|
Build date: 11/16/2013