• 6310阅读
  • 1回复

Qt/Embedded 2.3.2版本上使用QSound类播放。WAV文件 [复制链接]

上一主题 下一主题
离线xiekc
 

只看楼主 倒序阅读 楼主  发表于: 2006-06-21
我们在开发板上使用使用QSound类来播放WAV文件,
其播放QT版本是 2.3.2
但是一直播放不成功?
请问大家 是不是 不支持播放??
谢谢
[ 此贴被XChinux在2006-06-21 20:23重新编辑 ]
离线shiroki

只看该作者 1楼 发表于: 2006-06-22
qte的文档里有这样一段话:

On Qt/Embedded, a built-in mixing sound server is used, which accesses /dev/dsp directly. Only a single WAVE format is supported, though that support can be configured when building Qt. The default is 11.025 kHz 8-bit mono PCM.
The availability of sound can be tested with QSound::available().


所以应该检查你的声音设备是否正常,还有你的wav格式对不对。
--
shiro is White
ki is tree
http://www.cuteqt.com
论坛 http://www.cuteqt.com/bbs
博客 http://www.cuteqt.com/blog
博客镜像: http://sites.cuteqt.com/cuteqt
Linux/Qt/嵌入式讨论群 http://qun.qq.com/air/5699823
快速回复
限100 字节
 
上一个 下一个