SystemMediaTransportControls.SoundLevel SystemMediaTransportControls.SoundLevel SystemMediaTransportControls.SoundLevel SystemMediaTransportControls.SoundLevel SystemMediaTransportControls.SoundLevel Property

Definition

Gets the sound level of the media for the capture and render streams.

public : SoundLevel SoundLevel { get; }
SoundLevel SoundLevel();
public SoundLevel SoundLevel { get; }
Public ReadOnly Property SoundLevel As SoundLevel
var soundLevel = systemMediaTransportControls.soundLevel;

Property Value

The sound level.

Remarks

Music and media capture apps should monitor the SoundLevel to determine whether the audio streams on the app have been Muted. For apps using the MediaCapture object, capture will be automatically stopped when the capture streams of the app are muted. Capture is not re-started automatically when the audio streams are unmuted, so the SoundLevel changed notification can be used to restart capture. Use the PropertyChanged event to determine when the SoundLevel property changes.