Method Play
Play(SoundPlayFlags)
Plays the sound file.
public virtual bool Play(SoundPlayFlags flags = SoundPlayFlags.Asynchronous)
Parameters
flags
SoundPlayFlagsSound play flags.
Returns
- bool
true
on success,false
otherwise.
Remarks
If another sound is playing, it will be interrupted. Note that in general it is possible to delete the object which is being asynchronously played any time after calling this function and the sound would continue playing, however this currently doesn't work under Windows for sound objects loaded from memory data.