
中间曾想到过用Directx来实现mp3的播放,于是又去研究了如何利用directx9,试着用了它的DirectAudio,音乐是出来了,但是窗口一失去焦点,声音居然就突然暂停了

绝望之际,看到网上有人用C++调用DirectShow来播放音频文件的,但我惊讶地发现,在命名空间中....我找不到它?!!!突然之间,想起以前在vb里调用过winmm.dll,于是在C#中又试了试,结果还算成功....OH,效果还可以,而且不用进行什么错误控制,方便极了。
这个是C#调用wimm.dll来放音乐的示例,前两年写的,一个很不完整的示例,还不知道在编译得通不........

