怎样播放wav文件,有没有这样的类或dll?

tmxk0000 2003-09-11 02:36:06
怎样实现播放wav文件,有没有这样的类或dll?如能提供,感激不禁
...全文
29 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
ArLi2003 2003-09-11
  • 打赏
  • 举报
回复
http://www.zpcity.com/arli/commonprj/cls_sndPlay.cs
rainbow 2003-09-11
  • 打赏
  • 举报
回复
如果想控制播放,最后用managed directx9.0 的AudioVideo。
curdle 2003-09-11
  • 打赏
  • 举报
回复
[DllImport("Winmm.dll")]
static extern bool PlaySound(string pszSound, int hmod, int fdwSound);
whatsup 2003-09-11
  • 打赏
  • 举报
回复
using System.Runtime.InteropServices;

class YourClass {

[DllImport("winmm.dll", EntryPoint = "PlaySound")]
public static extern Boolean MyPlayAudio(string fileName, IntPtr mod, int flag);

}


class TestPlayer{
public static void Main(){
YourClass.MyPlayAudio("YourWaveFileName.wav", (IntPtr)0, 1);
}
}

tmxk0000 2003-09-11
  • 打赏
  • 举报
回复
http://www.pconline.com.cn/pcedu/empolder/gj/vc/10111/14520.html
HenanBoy 2003-09-11
  • 打赏
  • 举报
回复
这些东西在很多的项目都可能用的找怎么没有人回答那
sea2sea 2003-09-11
  • 打赏
  • 举报
回复
System.Diagnostics.Process.Start("F:\\Movie\\Girl18.wav");

110,534

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧