Playing a sound with QSoundEffect. Does it work in Qt versions after 5.0 ?



  • I am unsuccessfully trying to play a sound as follows:

    @
    QSoundEffect effect;
    void playSound() {
    effect.setMedia(QUrl::fromLocalFile("/home/elp/ErrorAlert.wav"));
    effect.setVolume(0.25f);
    effect.play();
    }
    @

    I have read of many problems with QSoundEffect via Google, and seen a bug report for QT 5.0.0 (supposedly fixed in 5.1.0). Can somebody clarify the present situation. Does QSoundEffect now work ? I am using QT 5.2.0 and Lubuntu 13.04. Any other ideas why this does not work ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.