SoundPlayer Class Overview
The SoundPlayer class enables you to easily include sounds in your applications.
The SoundPlayer class can play sound files in the .wav format, either from a resource or from UNC or HTTP locations. Additionally, the SoundPlayer class enables you to load or play sounds asynchronously.
You can also use the SystemSounds class to play common system sounds, including a beep.
The file path or Web address of the sound. Acceptable values can be UNC or HTTP.
The number of milliseconds your program will wait to load a sound before it throws an exception. The default is 10 seconds.
A Boolean value indicating whether the sound has finished loading.
Loads a sound synchronously.
Begins to load a sound asynchronously. When loading is complete, it raises the OnLoadCompleted event.
Stops any sound currently playing.
Raised after the load of a sound is attempted.