开发者

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);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜