SoundPlayer
Controls playback of a sound from a .wav file.
Gets a value indicating whether loading of a .wav file has successfully completed.
Gets or sets the time, in milliseconds, in which the .wav file must load.
Gets or sets the file path or URL of the .wav file to load.
Gets or sets the Stream from which to load the .wav file.
Gets or sets the Object that contains data about the SoundPlayer.
Occurs when a .wav file has been successfully or unsuccessfully loaded.
Occurs when a new audio source path for this SoundPlayer has been set.
Occurs when a new Stream audio source for this SoundPlayer has been set.
public SoundPlayer()
Initializes a new instance of the SoundPlayer class.
Initializes a new instance of the SoundPlayer class, and attaches the .wav file within the specified Stream.
Initializes a new instance of the SoundPlayer class.
Initializes a new instance of the SoundPlayer class, and attaches the specified .wav file.
Loads a sound synchronously.
Loads a .wav file from a stream or a Web resource using a new thread.
Raises the LoadCompleted event.
Raises the SoundLocationChanged event.
Raises the StreamChanged event.
Plays the .wav file using a new thread, and loads the .wav file first if it has not been loaded.
Plays and loops the .wav file using a new thread, and loads the .wav file first if it has not been loaded.
Plays the .wav file and loads the .wav file first if it has not been loaded.
Stops playback of the sound if playback is occurring.