SoundEffectInstance Class

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


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

Public Class SoundEffectInstance

The SoundEffectInstance type exposes the following members.

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.

Public methodDisposeReleases 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 methodStopImmediately stops playing the SoundEffectInstance.
Public methodStop(Boolean)Stops playing a SoundEffectInstance immediately or as authored.


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