SoundEffectInstance.IsLooped Property

Gets a value that indicates whether looping is enabled for the SoundEffectInstance.

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

public virtual bool IsLooped { get; set; }

Property Value

true if the SoundEffectInstance has looping enabled; otherwise, false.

If you want to make a sound play continuously until stopped, be sure to set IsLooped to true before you call SoundEffect.Play.

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

Community Additions

ADD
Show: