play sound in c# without using Media Namespace
Hii... I know this question is repeated开发者_如何学JAVA but I could not found what I am searching.. I want to play sound in c# without using System.Media or CoreDll.dll. Is there any way to write a function in c# as it is in COREDLL.dll ? Please help...
You can use P/Invoke to call the corresponding function from the Windows API:
[DllImport("kernel32.dll")]
public static extern bool Beep(UInt32 frequency, UInt32 duration);
精彩评论