4

C#的播放资源文件里的音频例子 - 开源研究系列文章

 5 months ago
source link: https://www.cnblogs.com/lzhdim/p/18077721
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Lzhdim's Fashion

       今天无聊,想起原来开发的待办列表TodoList里还缺个提醒声音,于是就添加了提供声音模块代码。然后想着记录一下,让更多的读者能够复用这个模块代码,于是就有了此博文。这个例子只是用于播放资源文件里的wav音频文件,如果要播放本地文件,那请读者自己添加代码,直接调用操作类里的函数即可。

  1、 项目目录;

   

o_240316135350_1.png

  2、 源码介绍;

  1) 播放资源文件操作类;

   

o_240316135354_2.png

  2) 使用操作类;

   

o_240316135359_3.png

  3、 运行界面;

  弄了个简单的应用界面:

   

o_240316135402_4.png

  4、 使用介绍;

  直接参考例子里的源码复制过去使用即可。

  5、 源码下载;

  提供源码下载:https://download.csdn.net/download/lzhdim/88976439

  6、 其它建议;

  这个例子只是播放的资源文件里的声音,如果播放本地文件,则直接应用操作类里的其它函数。具体请读者自己修改代码。

       这个例子简单的介绍了C#里播放资源音频文件,请需要的读者自己复用例子中的代码。

o_230607054137_lzhdim.png     Austin Liu  刘恒辉

Lzhdim Group's Chairman,Project Manager and Software Designer
    E-Mail:[email protected]
    Blog:https://lzhdim.cnblogs.com

欢迎收藏和转载此博客中的博文,但是请注明出处,给笔者一个与大家交流的空间。谢谢大家。

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK