SoundEffectInstance.Stop Method (Boolean)

Stops playing a SoundEffectInstance, either immediately or as authored.

Syntax

'Declaration
Public Sub Stop ( _
         immediate As Boolean _
)
public void Stop (
         bool immediate
)
public:
void Stop(
         bool immediate
)

Parameters

  • immediate
    Type: Boolean
    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).

Requirements

Namespace: Microsoft.Xna.Framework.Audio

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

See Also

Reference

SoundEffectInstance.Play Method
SoundEffectInstance Class
SoundEffectInstance Members
Microsoft.Xna.Framework.Audio Namespace

Platforms

Windows Phone