你如何在.NET应用程序中播放声音? [英] How do you play sounds in a .NET app?

查看:57
本文介绍了你如何在.NET应用程序中播放声音?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个C#应用程序,我想通过

声音通知用户事件。有没有办法播放至少标准声音?


----------

Will Pittenger

电子邮件:mailto:wi ************ @ verizon.net

所有邮件由Qurb过滤( www.qurb.com

I have a C# application that I would like to notify the user of events with
sound. Is there a way to playback at least the standard sounds?

----------
Will Pittenger
E-Mail: mailto:wi************@verizon.net
All mail filtered by Qurb (www.qurb.com)

推荐答案

看看winforms的演讲api。 webforms使用

脚本处理


-

问候,

Alvin Bruney [ASP .NET MVP]

得到花絮?在此处获取...
http://tinyurl.com/27cok

" Will Pittenger" <无线************ @ verizon.net>在留言中写道

新闻:%2 **************** @ tk2msftngp13.phx.gbl ...
have a look at the speech api for winforms. webforms deals with it using
scripting

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/27cok
"Will Pittenger" <wi************@verizon.net> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
我有一个C#应用程序,我想通过
声音通知用户事件。有没有办法播放至少标准声音?

----------
Will Pittenger
电子邮件:mailto:wi *** *********@verizon.net
所有邮件由Qurb过滤( www .qurb.com
I have a C# application that I would like to notify the user of events with
sound. Is there a way to playback at least the standard sounds?

----------
Will Pittenger
E-Mail: mailto:wi************@verizon.net
All mail filtered by Qurb (www.qurb.com)



看看


BOOL WINAPI PlaySound(

LPCSTR pszSound,

HMODULE hmod,

DWORD fdwSound

);


在事件处理函数中调用此函数...


---

Vladimir Scherbina,

UA,Kiev。


" Will Pittenger" <无线************ @ verizon.net>在消息中写道

新闻:#Q ************** @ tk2msftngp13.phx.gbl ...
take a look at

BOOL WINAPI PlaySound(
LPCSTR pszSound,
HMODULE hmod,
DWORD fdwSound
);

call this function at the event handler function...

---
Vladimir Scherbina,
UA, Kiev.

"Will Pittenger" <wi************@verizon.net> wrote in message
news:#Q**************@tk2msftngp13.phx.gbl...
我有一个C#我希望通过声音通知用户事件
的应用程序。有没有办法播放至少标准声音?

----------
Will Pittenger
电子邮件:mailto:wi *** *********@verizon.net
所有邮件由Qurb过滤( www .qurb.com
I have a C# application that I would like to notify the user of events with sound. Is there a way to playback at least the standard sounds?

----------
Will Pittenger
E-Mail: mailto:wi************@verizon.net
All mail filtered by Qurb (www.qurb.com)



查看playound API和/或使用进程开始传入声音

文件名。

" Will Pittenger" <无线************ @ verizon.net>在消息中写道

新闻:#Q ************** @ tk2msftngp13.phx.gbl ...
Check out the playsound API and/or using process start passing in the sound
file name.
"Will Pittenger" <wi************@verizon.net> wrote in message
news:#Q**************@tk2msftngp13.phx.gbl...
我有一个C#我希望通过声音通知用户事件
的应用程序。有没有办法播放至少标准声音?

----------
Will Pittenger
电子邮件:mailto:wi *** *********@verizon.net
所有邮件由Qurb过滤( www .qurb.com
I have a C# application that I would like to notify the user of events with sound. Is there a way to playback at least the standard sounds?

----------
Will Pittenger
E-Mail: mailto:wi************@verizon.net
All mail filtered by Qurb (www.qurb.com)



这篇关于你如何在.NET应用程序中播放声音?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆