AudioStateMonitor.CreateForCaptureMonitoring AudioStateMonitor.CreateForCaptureMonitoring AudioStateMonitor.CreateForCaptureMonitoring AudioStateMonitor.CreateForCaptureMonitoring AudioStateMonitor.CreateForCaptureMonitoring Method

Definition

Overloads

CreateForCaptureMonitoring() CreateForCaptureMonitoring() CreateForCaptureMonitoring() CreateForCaptureMonitoring() CreateForCaptureMonitoring()

Initializes a new instance of the AudioStateMonitor class that monitors the sound level for all audio capture streams.

CreateForCaptureMonitoring(MediaCategory) CreateForCaptureMonitoring(MediaCategory) CreateForCaptureMonitoring(MediaCategory) CreateForCaptureMonitoring(MediaCategory) CreateForCaptureMonitoring(MediaCategory)

Initializes a new instance of the AudioStateMonitor class that monitors the sound level for audio capture streams with the specified MediaCategory.

CreateForCaptureMonitoring(MediaCategory, AudioDeviceRole) CreateForCaptureMonitoring(MediaCategory, AudioDeviceRole) CreateForCaptureMonitoring(MediaCategory, AudioDeviceRole) CreateForCaptureMonitoring(MediaCategory, AudioDeviceRole) CreateForCaptureMonitoring(MediaCategory, AudioDeviceRole)

Initializes a new instance of the AudioStateMonitor class that monitors the sound level for audio capture streams with the specified MediaCategory and AudioDeviceRole.

CreateForCaptureMonitoring() CreateForCaptureMonitoring() CreateForCaptureMonitoring() CreateForCaptureMonitoring() CreateForCaptureMonitoring()

Initializes a new instance of the AudioStateMonitor class that monitors the sound level for all audio capture streams.

public : static AudioStateMonitor CreateForCaptureMonitoring()
static AudioStateMonitor CreateForCaptureMonitoring() const;
public static AudioStateMonitor CreateForCaptureMonitoring()
Public Shared Function CreateForCaptureMonitoring() As AudioStateMonitor
var audioStateMonitor = Windows.Media.Audio.AudioStateMonitor.createForCaptureMonitoring();

Returns

Remarks

The method you use to instantiate AudioStateMonitor determines which audio streams are monitored. Other factory methods of the AudioStateMonitor class allow you to monitor the level of audio streams based on their MediaCategory, AudioDeviceRole, the ID of the associated audio device, and whether the stream is capturing or rendering audio.

CreateForCaptureMonitoring(MediaCategory) CreateForCaptureMonitoring(MediaCategory) CreateForCaptureMonitoring(MediaCategory) CreateForCaptureMonitoring(MediaCategory) CreateForCaptureMonitoring(MediaCategory)

Initializes a new instance of the AudioStateMonitor class that monitors the sound level for audio capture streams with the specified MediaCategory.

public : static AudioStateMonitor CreateForCaptureMonitoring(MediaCategory category)
static AudioStateMonitor CreateForCaptureMonitoring(MediaCategory category) const;
public static AudioStateMonitor CreateForCaptureMonitoring(MediaCategory category)
Public Shared Function CreateForCaptureMonitoring(category As MediaCategory) As AudioStateMonitor
var audioStateMonitor = Windows.Media.Audio.AudioStateMonitor.createForCaptureMonitoring(category);

Parameters

category
MediaCategory MediaCategory MediaCategory

A value from the MediaCategory enumeration indicating the categories of audio streams that will be monitored. The system may use the category of an audio stream to determine if it should be muted or have its volume lowered in response to a particular system event.

Returns

Remarks

The method you use to instantiate AudioStateMonitor determines which audio streams are monitored. Other factory methods of the AudioStateMonitor class allow you to monitor the level of audio streams based on their AudioDeviceRole, the ID of the associated audio device, and whether the stream is capturing or rendering audio.

CreateForCaptureMonitoring(MediaCategory, AudioDeviceRole) CreateForCaptureMonitoring(MediaCategory, AudioDeviceRole) CreateForCaptureMonitoring(MediaCategory, AudioDeviceRole) CreateForCaptureMonitoring(MediaCategory, AudioDeviceRole) CreateForCaptureMonitoring(MediaCategory, AudioDeviceRole)

Initializes a new instance of the AudioStateMonitor class that monitors the sound level for audio capture streams with the specified MediaCategory and AudioDeviceRole.

public : static AudioStateMonitor CreateForCaptureMonitoring(MediaCategory category, AudioDeviceRole role)
static AudioStateMonitor CreateForCaptureMonitoring(MediaCategory category, AudioDeviceRole role) const;
public static AudioStateMonitor CreateForCaptureMonitoring(MediaCategory category, AudioDeviceRole role)
Public Shared Function CreateForCaptureMonitoring(category As MediaCategory, role As AudioDeviceRole) As AudioStateMonitor
var audioStateMonitor = Windows.Media.Audio.AudioStateMonitor.createForCaptureMonitoring(category, role);

Parameters

category
MediaCategory MediaCategory MediaCategory

A value from the MediaCategory enumeration indicating the categories of audio streams that will be monitored. The system may use the category of an audio stream to determine if it should be muted or have its volume lowered in response to a particular system event.

role
AudioDeviceRole AudioDeviceRole AudioDeviceRole

A value from the AudioDeviceRole enumeration indicating the device role of audio streams that will be monitored. The system may use the device role of an audio stream to determine if it should be muted or have its volume lowered in response to a particular system event.

Returns

Remarks

The method you use to instantiate AudioStateMonitor determines which audio streams are monitored. Other factory methods of the AudioStateMonitor class allow you to monitor the level of audio streams based on the ID of the associated audio device and whether the stream is capturing or rendering audio.