Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Playing a sound with QSoundEffect. Does it work in Qt versions after 5.0 ?
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 497 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    elpidiovaldez5
    wrote on last edited by
    #1

    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 ?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved