如何在VB 10中播放背景歌曲并按下按钮来制作音效? [英] How to have a background song and press a button to make sound effects in VB 10?

查看:74
本文介绍了如何在VB 10中播放背景歌曲并按下按钮来制作音效?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很抱歉,这个问题可能已经回答了很多次.但是我在将我在其他线程中阅读的内容与自己的问题联系起来时遇到了麻烦.我实际上有几个不同的问题.首先,在我的程序中,有一首背景音乐 并且我希望有一个或多个按钮能够在不停止背景歌曲的情况下产生声音效果.另外,我会背景音乐会在点击图片后开始播放,但是在再次点击图片时不会重新开始播放.其他 事情也是如此,点击图像时图像也会四处移动.但是,如果在移动时单击它,它会开始抽搐.我是编程新手.

This question has probably been answered numerous times, sorry.  But I'm having trouble relating what I've read in other threads to my problems.  I have several different questions actually.  Firstly, in my program, I have a background song, and I would like to have one or more buttons that make sound effects without stopping the background song.  Also, I would for the  background song to start once an image is clicked, but then not start over when the image is clicked again.  Another thing, the image moves around when it is clicked as well.  But if it is clicked when it's moving it starts twitching.  Im very new to programming.

推荐答案

尝试使用具有媒体元素的WPF
Try WPF which has media element


这篇关于如何在VB 10中播放背景歌曲并按下按钮来制作音效?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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