by tangke <> 2009-06-28
通过QSound类的play方法在windows通过,在X11通不过,然后参考了PSI代码,里面也是这样写的。
需要安装sox包,apt-get install sox
我在目标机器上面安装了qt-4.4.0版本以及sox 14.0.1版本,在龙芯8.9inch上面测试通过。
if(!option.player.isEmpty())
{
QStringList args;
args = QStringList::split(' ', option.player);
args += str;
QString prog = args.takeFirst();
QProcess::startDetached(prog, args);
}
play *.wav
options.player = "player"
str = "*.wav"
参考文档:
PSI代码
阅读(679) | 评论(0) | 转发(0) |