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

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

    XMLWordPrintable

Details

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

    Description

      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() }
          }
      
      
      }
      

       

       

      Attachments

        For Gerrit Dashboard: QTBUG-96202
        # Subject Branch Project Status CR V

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes