AudioStateMonitor.CreateForRenderMonitoring AudioStateMonitor.CreateForRenderMonitoring AudioStateMonitor.CreateForRenderMonitoring AudioStateMonitor.CreateForRenderMonitoring AudioStateMonitor.CreateForRenderMonitoring Method

Definition

Overloads

CreateForRenderMonitoring() CreateForRenderMonitoring() CreateForRenderMonitoring() CreateForRenderMonitoring() CreateForRenderMonitoring()

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

CreateForRenderMonitoring(AudioRenderCategory) CreateForRenderMonitoring(AudioRenderCategory) CreateForRenderMonitoring(AudioRenderCategory) CreateForRenderMonitoring(AudioRenderCategory) CreateForRenderMonitoring(AudioRenderCategory)

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

CreateForRenderMonitoring(AudioRenderCategory, AudioDeviceRole) CreateForRenderMonitoring(AudioRenderCategory, AudioDeviceRole) CreateForRenderMonitoring(AudioRenderCategory, AudioDeviceRole) CreateForRenderMonitoring(AudioRenderCategory, AudioDeviceRole) CreateForRenderMonitoring(AudioRenderCategory, AudioDeviceRole)

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

CreateForRenderMonitoring() CreateForRenderMonitoring() CreateForRenderMonitoring() CreateForRenderMonitoring() CreateForRenderMonitoring()

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

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

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.

CreateForRenderMonitoring(AudioRenderCategory) CreateForRenderMonitoring(AudioRenderCategory) CreateForRenderMonitoring(AudioRenderCategory) CreateForRenderMonitoring(AudioRenderCategory) CreateForRenderMonitoring(AudioRenderCategory)

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

public : static AudioStateMonitor CreateForRenderMonitoring(AudioRenderCategory category)
static AudioStateMonitor CreateForRenderMonitoring(AudioRenderCategory category) const;
public static AudioStateMonitor CreateForRenderMonitoring(AudioRenderCategory category)
Public Shared Function CreateForRenderMonitoring(category As AudioRenderCategory) As AudioStateMonitor
var audioStateMonitor = Windows.Media.Audio.AudioStateMonitor.createForRenderMonitoring(category);

Parameters

category
AudioRenderCategory AudioRenderCategory AudioRenderCategory

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.

CreateForRenderMonitoring(AudioRenderCategory, AudioDeviceRole) CreateForRenderMonitoring(AudioRenderCategory, AudioDeviceRole) CreateForRenderMonitoring(AudioRenderCategory, AudioDeviceRole) CreateForRenderMonitoring(AudioRenderCategory, AudioDeviceRole) CreateForRenderMonitoring(AudioRenderCategory, AudioDeviceRole)

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

public : static AudioStateMonitor CreateForRenderMonitoring(AudioRenderCategory category, AudioDeviceRole role)
static AudioStateMonitor CreateForRenderMonitoring(AudioRenderCategory category, AudioDeviceRole role) const;
public static AudioStateMonitor CreateForRenderMonitoring(AudioRenderCategory category, AudioDeviceRole role)
Public Shared Function CreateForRenderMonitoring(category As AudioRenderCategory, role As AudioDeviceRole) As AudioStateMonitor
var audioStateMonitor = Windows.Media.Audio.AudioStateMonitor.createForRenderMonitoring(category, role);

Parameters

category
AudioRenderCategory AudioRenderCategory AudioRenderCategory

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.