josentop
10th January 2012, 15:42
I'm trying to use QSound in my program under ubuntu desktop as below,
if (QSound::isAvailable())
{
qDebug() << "Sound is playing!";
QSound bell(QString("warnhighsound.wav");
bell.play();
}
else
{
qDebug() << "Sound isn't available!");
}
it always show 'Sound isn't available!' message to me. does't it mean QSound not work on ubuntu desktop? My Qt is nearly version (4.8)
Can anyone give some suggestion? thanks.
if (QSound::isAvailable())
{
qDebug() << "Sound is playing!";
QSound bell(QString("warnhighsound.wav");
bell.play();
}
else
{
qDebug() << "Sound isn't available!");
}
it always show 'Sound isn't available!' message to me. does't it mean QSound not work on ubuntu desktop? My Qt is nearly version (4.8)
Can anyone give some suggestion? thanks.