AudioDeviceController class

Applies to Windows and Windows Phone

Controls device settings on the microphone.

Syntax


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

Attributes

[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

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

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

 

 

Show:
© 2014 Microsoft