Table of Contents

Method Play

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Play(SoundPlayFlags)

Plays the sound file.

public virtual bool Play(SoundPlayFlags flags = SoundPlayFlags.Asynchronous)

Parameters

flags SoundPlayFlags

Sound 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.