Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

AudioDeviceController class

Controls device settings on the microphone.

Syntax


/* For information about creating or accessing this object, see Remarks. */

Attributes

[DualApiPartition()]
[MarshalingBehavior(Standard)]
[Threading(MTA)]
[Version(0x06020000)]

Members

The AudioDeviceController class has these types of members:

Methods

The AudioDeviceController class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
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.

 

Properties

The AudioDeviceController class has these properties.

PropertyAccess typeDescription

Muted

Read/writeMutes or unmutes the microphone.

VolumePercent

Read/writeGets or sets the volume of the microphone.

 

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).

Examples

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;

Requirements (device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Media.Devices
Windows::Media::Devices [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (operating system)

Minimum supported client

Windows 8 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 [Windows Store apps, desktop apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Media.Devices
Windows::Media::Devices [C++]

Metadata

Windows.winmd

See also

Object
IMediaDeviceController

 

 

Show:
© 2015 Microsoft