AudioMixer.Volume Property
Gets the current volume level.
Syntax
public int Volume {get;}
Property Value
System.Int32 A value ranging from 0 (softest) to 65,535 (loudest).
This property is read-only.
Remarks
An application can change the volume level by following these steps:
- Retrieve the current level from the Volume property.
- Call the AudioMixer.VolumeUp or AudioMixer.VolumeDown method to raise or lower the volume.
- Check the Volume property. If the current volume level is not equal to the desired level, repeat step 2. Otherwise, end the procedure.
An application should use the same procedure to restore the user's previous volume level.
Requirements
Reference: Microsoft.MediaCenter
Namespace: Microsoft.MediaCenter
Assembly: Microsoft.MediaCenter.dll
Platform: Windows Vista Ultimate, Windows Vista Home Premium, and later
See Also