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

QML Audio has hiccups when looping

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.12.4, 5.13.1, 5.14.0 Alpha
    • 5.11.2
    • Multimedia
    • None
    • I'm using Qt5.11.2 on Ubuntu 16.04
    • Linux/Other display system
    • 4bcd9000baf27241c52931365c91a42c5ae2f83c (qt/qtmultimedia/5.12)

    Description

      I have the following QML that plays an audio file in an infinite loop.

       

      import QtQuick 2.11
      import QtQuick.Window 2.11
      import QtMultimedia 5.8
      
      Window {
          visible: true
          width: 640
          height: 480
          title: qsTr("Hello World")    
          Audio {
              id: noiseId
              loops: Audio.Infinite
              source: "qrc:/448213__florianreichelt__white-noise.wav"
              onStatusChanged: console.log("status = " + status)
              onError: console.log("error = " + error + " " + errorString)
              onPlaybackStateChanged: console.log("playbackstate = " + playbackState)
          }    
          Component.onCompleted: noiseId.play()
      }

      I used the noise file from here 
      Unfortunately, after every loop, I hear a clear short hiccup. 
      Is this a bug? Is there a work-around?

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            valentyn.doroshchuk Valentyn Doroshchuk
            vdaele vdaele
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes