Share via


AudioDeviceController クラス

定義

マイクのデバイス設定を制御します。

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
継承
Object Platform::Object IInspectable AudioDeviceController
属性
実装

Windows の要件

デバイス ファミリ
Windows 10 (10.0.10240.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v1.0 で導入)

注釈

このオブジェクトのインスタンスを取得するには、 MediaCapture.AudioDeviceController プロパティを 取得します。

注意

このクラスはアジャイルではありません。つまり、スレッド モデルとマーシャリング動作を考慮する必要があります。 詳細については、「スレッド処理とマーシャリング (C++/CX)」および「マルチスレッド環境でのWindows ランタイム オブジェクトの使用 (.NET)」を参照してください。

プロパティ

AudioCaptureEffectsManager

AudioDeviceController に関連付けられている をAudioCaptureEffectsManager取得します。

Muted

マイクをミュートまたはミュート解除します。

VolumePercent

マイクの音量を取得または設定します。

メソッド

GetAvailableMediaStreamProperties(MediaStreamType)

デバイスでサポートされているエンコード プロパティの一覧を取得します。

GetMediaStreamProperties(MediaStreamType)

デバイスの指定したメディア ストリームの種類のエンコード プロパティを取得します。

SetMediaStreamPropertiesAsync(MediaStreamType, IMediaEncodingProperties)

デバイスの指定したメディア ストリームの種類に対してエンコード プロパティを非同期的に設定します。

適用対象