如何在DirectSound C#中播放2个WAV文件 [英] How to play 2 wav files in DirectSound c#

查看:197
本文介绍了如何在DirectSound C#中播放2个WAV文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我按下1按钮时,声音开始播放,但是在按下另一个按钮后又被第二个声音打扰了.如何避免这种情况?(c#):confused:

When i press 1 button the sound starts playing,but after pressing another one it is iterrupted by the second .How can i avoid this?(c#):confused:

推荐答案

好吧,鉴于您没有发布任何代码,因此很难对如何修复进行评论.但是,我在google上找到了 [
Well, given you didn''t post any code, it''s hard to comment on how to fix it. However, I did google, and found this[^] in seconds.


恩,我很喜欢这个问题
使用WMPLib;

WMPLib.WindowsMediaPlayer Do1 =新的WMPLib.WindowsMediaPlayer();

Do1.URL = fullAppPath +"\\ PianoDo#.wav";
但是我怎么能录制呢?
well,i have sloved this problem
using WMPLib;

WMPLib.WindowsMediaPlayer Do1 = new WMPLib.WindowsMediaPlayer();

Do1.URL = fullAppPath + "\\PianoDo#.wav";
but how can i record???


好)))我还没看到你的答案))))现在)
well)))i havn`t seen your answer)))only now)


这篇关于如何在DirectSound C#中播放2个WAV文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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