Playing Sounds

Threads

Well-known member
Joined
Feb 4, 2003
Messages
65
Location
The Matrix
Hello,

Is there just a simple function like sndPlaySound in the .NET Framework that I am missing? I dont want to use DirectSound just to play a sound in a Windows Form application.

If there isnt one, then I guess Ill just use sndPlaySound still. Seems a bit odd that there wouldnt be a .NET equivalent though.

Thanks
 
There isnt one in .NET due to the platform-specific constraints, so you need API. However, dont use sndPlaySound. Use [api]PlaySound[/api] instead. sndPlaySound is deprecated.
 
Back
Top