Export (0) Print
Expand All

SoundEffectInstance Class

Provides a single playing, paused, or stopped instance of a SoundEffect sound.

System.Object
  Microsoft.Xna.Framework.Audio.SoundEffectInstance

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

public class SoundEffectInstance

The SoundEffectInstance type exposes the following members.

  NameDescription
Public propertyIsDisposedGets a value that indicates whether the object is disposed.
Public propertyIsLoopedGets a value that indicates whether looping is enabled for the SoundEffectInstance.
Public propertyPanGets or sets the panning for the SoundEffectInstance.
Public propertyPitchGets or sets the pitch adjustment for the SoundEffectInstance.
Public propertyStateGets the current state (playing, paused, or stopped) of the SoundEffectInstance.
Public propertyVolumeGets or sets the volume of the SoundEffectInstance.
Top

  NameDescription
Public methodDispose()Releases unmanaged resources held by this SoundEffectInstance.
Protected methodDispose(Boolean)Releases the unmanaged resources held by this SoundEffectInstance, and optionally releases the managed resources.
Public methodPausePauses the SoundEffectInstance.
Public methodPlayPlays or resumes playing the SoundEffectInstance.
Public methodResumeResumes playback of the SoundEffectInstance.
Public methodStop()Immediately stops playing the SoundEffectInstance.
Public methodStop(Boolean)Stops playing a SoundEffectInstance immediately or as authored.
Top

Silverlight

Supported in: 5

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft