Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 1.4 KB

audiostatemonitor_createforcapturemonitoring_1632548802.md

File metadata and controls

28 lines (19 loc) · 1.4 KB
-api-id -api-type
M:Windows.Media.Audio.AudioStateMonitor.CreateForCaptureMonitoring(Windows.Media.Capture.MediaCategory)
winrt method

Windows.Media.Audio.AudioStateMonitor.CreateForCaptureMonitoring

-description

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

-parameters

-param category

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

An AudioStateMonitor object.

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

-see-also

-examples