Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-96202

SoundEffect does not work in Qt6.2 beta3 in Windows and Linux

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 6.2
    • 6.2.0 Beta3
    • Multimedia
    • None
    • Linux/X11, Windows

      The following trivial example crashs on Windows, on linux Mint plays the sound only the first time. Works fine on android and Mac OS

      import QtQuick 2.15
      import QtQuick.Window 2.15
      import QtMultimedia //5.15
      
      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
      
          Text {
              id: name
              text: qsTr("text")
          }
      
          SoundEffect {
              id: playSound
              source: "qrc:/sounds/shot.wav"
          }
      
          MouseArea {
              id: playArea
              anchors.fill: parent
              onPressed: { playSound.play() }
          }
      
      
      }
      

       

       

        1. soundtest.zip
          796 kB
          Joao de Deus Sena Morgado
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            anrocha André De La Rocha (Inactive)
            johngod Joao de Deus Sena Morgado
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes