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
Hello,
 
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.
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
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to