SoundEffectInstance.Volume Property

Gets or sets the volume of the SoundEffectInstance.

Namespace: Microsoft.Xna.Framework.Audio
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

public float Volume { get; set; }

Property Value

Volume, ranging from 0.0f (silence) to 1.0f (full volume). 1.0f is full volume relative to SoundEffect.MasterVolume.

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone

Community Additions