没有合适的资源?快使用搜索试试~ 我知道了~
Qt 播放Wav音频文件
共6个文件
cpp:2个
ui:1个
user:1个
4星 · 超过85%的资源 需积分: 5 179 下载量 194 浏览量
2016-04-26
10:25:16
上传
评论 1
收藏 4KB RAR 举报
温馨提示
Qt使用QSoundEffect来播放wav文件 附官方说明:This class allows you to play uncompressed audio files (typically WAV files) in a generally lower latency way, and is suitable for "feedback" type sounds in response to user actions (e.g. virtual keyboard sounds, positive or negative feedback for popup dialogs, or game sounds). If low latency is not important, consider using the QMediaPlayer class instead, since it supports a wider variety of media formats and is less resource intensive.
资源推荐
资源详情
资源评论
收起资源包目录
Qt_Play_Music_QsoundEffect.rar (6个子文件)
Qt_Play_Music_QsoundEffect
widget_play_music.cpp 479B
widget_play_music.h 410B
Qt_Play_Music.pro 431B
Qt_Play_Music.pro.user 18KB
main.cpp 197B
widget_play_music.ui 1KB
共 6 条
- 1
资源评论
- SimonXiezm2016-11-09不错的资源,感谢分享。
- liyonghaod2017-10-11就是官方文档上的一个例子,没声音
- daihong70132017-08-16都下了 没用啊 没声音
- cnbeta19932016-09-14亲测有用,注意在release模式下编译完后一定要把qt安装目录下的plugins/audio这个文件夹复制到你编译出来的那个文件夹里,不然只能在debug模式下放音乐,在release模式就不行,会提示这个错误,无语了,刚刚才在stackoverflow上看到这个方法的。我这边是win下的QT编译,win下测试能解决这个报错的问题。或者用windeployqt.exe xxx.exe应该也能解决这个问题。
DreamLife.
- 粉丝: 3w+
- 资源: 75
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功