Share via


AudioMixer.Volume Property

Gets the current volume level.

Note   This property has been deprecated.

Syntax

  AudioMixer.Volume

Property Value

A read-only Number (long) with a value ranging from 0 (softest) to 65,535 (loudest).

Remarks

An HTML application can change the volume level by following these steps:

  1. Retrieve the current level from the Volume property.
  2. Call the AudioMixer.VolumeUp or AudioMixer.VolumeDown method to raise or lower the volume.
  3. 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

Platform: HTML application hosted within Windows XP Media Center Edition 2004 through Windows Vista

See Also