Windows Dev Center

BackgroundAudioPlayer.Volume Property

The media's volume represented on a linear scale between 0 and 1. The default is 0.85.

Namespace:  Microsoft.Phone.BackgroundAudio
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

public double Volume { get; set; }

Property Value

Type: System.Double
Returns Double.

Volume can be difficult to quantify because each media file has a different baseline for its recorded or perceived audio level. Also, true audio volume as represented on the decibel scale is inherently logarithmic. Think of the Volume property as representing the position value of an audio mixer slider control, with 0 being all the way down and 1 being all the way up.

Volume settings may not be retained in background audio player applications. This can occur if you set the Volume property first and then call the Play() method and then set the Track property. To resolve this issue, always set the track before calling the Play method.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

© 2015 Microsoft