views:

61

answers:

1

I need some classes for playing short wav sounds, this classes would load this wav files into memory when an instance created, play sounds in background when needed, release this wav files from memory when an instance disposed.

How can I do this on C# for windows (.Net 2.0)? (Win API's sndPlaySound, OpenAL or may be any wrapper) Ideally I would love to find an exist solution that simple and able to solve my task.

Do you know any solutions for this issue?

+1  A: 

Check out the System.Media.SoundPlayer class. http://msdn.microsoft.com/en-us/library/system.media.soundplayer.aspx

System.Media.SystemSounds too. http://msdn.microsoft.com/en-us/library/system.media.systemsounds.aspx

sarme
thanx, solved with System.Media.SoundPlayer
Yakov