--- title: "SoundPlayer Class Overview" ms.date: "03/30/2017" helpviewer_keywords: - "playing sounds [Windows Forms], SoundPlayer class" - "SoundPlayer class [Windows Forms], about SoundPlayer class" - "sounds [Windows Forms], playing" ms.assetid: fcebb938-62b9-4677-9cbe-6465bc863e22 --- # SoundPlayer Class Overview The class enables you to easily include sounds in your applications. The class can play sound files in the .wav format, either from a resource or from UNC or HTTP locations. Additionally, the class enables you to load or play sounds asynchronously. You can also use the class to play common system sounds, including a beep. ## Commonly Used Properties, Methods, and Events |Name|Description| |----------|-----------------| | property|The file path or Web address of the sound. Acceptable values can be UNC or HTTP.| | property|The number of milliseconds your program will wait to load a sound before it throws an exception. The default is 10 seconds.| | property|A Boolean value indicating whether the sound has finished loading.| | method|Loads a sound synchronously.| | method|Begins to load a sound asynchronously. When loading is complete, it raises the event.| | method|Plays the sound specified in the or property in a new thread.| | method|Plays the sound specified in the or property in the current thread.| | method|Stops any sound currently playing.| | event|Raised after the load of a sound is attempted.| ## See also - -