Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt5 QSoundEffect Not Working

    General and Desktop
    2
    3
    3728
    Loading More Posts
    • 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
      Gilgrum last edited by

      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 Reply Quote 0
      • Z
        zarnick last edited by

        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 Reply Quote 0
        • Z
          zarnick last edited by

          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 Reply Quote 0
          • First post
            Last post