I'm guessing, but the audio hardware is shutting down? As a cheap hack, since it is "white noise", (it's not technically white noise) can you overlap two with a time offset so the audio hardware never shuts down?
Sent: Thursday, April 18, 2019 at 8:45 AM
From: "Marc Van Daele" <marc.van.dael...@gmail.com>
To: interest@qt-project.org
Subject: [Interest] QML Audio loops
From: "Marc Van Daele" <marc.van.dael...@gmail.com>
To: interest@qt-project.org
Subject: [Interest] QML Audio loops
Hello,
_______________________________________________ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interestI have the following QML that plays an audio file in an infinite loop.
I used the noise file from hereimport QtQuick 2.11import QtQuick.Window 2.11import QtMultimedia 5.8Window {visible: truewidth: 640height: 480title: qsTr("Hello World")Audio {id: noiseIdloops: Audio.Infinitesource: "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()}
Unfortunately, after every loop, I hear a clear short hiccup.
Any advice on how to avoid these hiccups?
I'm using Qt5.11.2 on Ubuntu 16.04
Thanks in advance,
Marc
_______________________________________________ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest