Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt5 QSoundEffect Not Working

Qt5 QSoundEffect Not Working

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 4.2k Views
  • 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.
  • G Offline
    G Offline
    Gilgrum
    wrote on last edited by
    #1

    In Qt5 the QtSoundEffect class does not play any sound, nor does it give any error messages. This occurs on both Windows 7 and Mac. It also does not matter if you try to use SoundEffect through C++ or QML, you don't get sound in either case. The sounds I am testing with are wav files and are NOT in a resource file.

    Has anyone else encounter this issue and find a work around?

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      zarnick
      wrote on last edited by
      #2

      I have the same problem. The only "solution" I found was actually using QMediaPlayer (which brings a lot of mayhem for a simple thing).

      1 Reply Last reply
      0
      • Z Offline
        Z Offline
        zarnick
        wrote on last edited by
        #3

        Hey, I just found this link and it worked for me (I'm using QSound tough) http://stackoverflow.com/questions/14165608/qt5-qsound-does-not-play-all-wave-files

        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