Playing WAV Audio
The .NET Framework has a sketchy history of sound support. Versions 1.0 and 1.1 didn't include any managed way to play audio, and when the long-delayed support finally appeared in .NET 2.0, it was in the form of the rather underwhelming SoundPlayer class (which you can find in the underpopulated System.Media namespace). The SoundPlayer is severely limited: it can play only WAV audio files, it doesn't support playing more than one sound at once, and it doesn't provide the ability to control any aspect of the audio playback (for example, details such as volume and balance). To get these features, developers using the Windows Forms toolkit had to work with the unmanaged quartz.dll library.
NOTE
The quartz.dll library is a key ...
Get Pro WPF in C# 2008: Windows Presentation Foundation with .NET 3.5, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.