SoundEffect.Play Method

Plays a sound.

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

public bool Play()

Return Value

Type: System.Boolean
true if the sound is playing back successfully; otherwise, false.

Silverlight

Supported in: 5

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

Community Additions

ADD
Show: