System.Media.SoundPlayer public class SoundPlayer : Component, ISerializable Documentation Code public bool IsLoadCompleted { get; } public int 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 SoundPlayer() public SoundPlayer(Stream stream) protected SoundPlayer(SerializationInfo serializationInfo, StreamingContext context) public SoundPlayer(string soundLocation) 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()