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

QML Audio has hiccups when looping

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.11.2
    • Fix Version/s: 5.12.4, 5.13.1, 5.14.0 Alpha
    • Component/s: Multimedia
    • Labels:
      None
    • Environment:
      I'm using Qt5.11.2 on Ubuntu 16.04
    • Platform/s:
      Linux/Other display system
    • Commits:
      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

            • Assignee:
              valentyn.doroshchuk Valentyn Doroshchuk
              Reporter:
              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