首页| 论坛| 消息

标题:Qt/Embedded 2.3.2版本上使用QSound类播放。WAV文件
作者:xiekc
日期:2006-06-21 17:08
内容:

我们在开发板上使用使用QSound类来播放WAV文件,
其播放QT版本是2.3.2
但是一直播放不成功?
请问大家 是不是 不支持播放??
谢谢


#1 [shiroki 06-22 08:01]
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格式对不对。

回复 发表
主题 版块