|
|
public class SoundPlayer
|
|
|
: Component, IComponent, IDisposable, ISerializable
|
|
|
public Boolean IsLoadCompleted { get; }
|
|
|
public Int32 LoadTimeout { get; set; }
|
|
|
public String SoundLocation { get; set; }
|
|
|
public Stream Stream { get; set; }
|
|
|
public Object Tag { get; set; }
|
|
|
public event AsyncCompletedEventHandler LoadCompleted;
|
|
|
public event EventHandler SoundLocationChanged;
|
|
|
public event EventHandler StreamChanged;
|
|
|
public void Load();
|
|
|
public void LoadAsync();
|
|
|
protected virtual void OnLoadCompleted(AsyncCompletedEventArgs e);
|
|
|
protected virtual void OnSoundLocationChanged(EventArgs e);
|
|
|
protected virtual void OnStreamChanged(EventArgs e);
|
|
|
public void Play();
|
|
|
public void PlayLooping();
|
|
|
public void PlaySync();
|
|
|
public void Stop();
|