SoundEffectInstance.Stop Method (Boolean)
Stops playing a SoundEffectInstance, either immediately or as authored.
Namespace: Microsoft.Xna.Framework.Audio
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Syntax
public void Stop (
bool immediate
)
Parameters
- immediate
Whether to stop playing immediately, or to break out of the loop region and play the release. Specify true to stop playing immediately, or false to break out of the loop region and play the release phase (the remainder of the sound).
See Also
Reference
SoundEffectInstance.Play Method
SoundEffectInstance Class
SoundEffectInstance Members
Microsoft.Xna.Framework.Audio Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista, Zune