[Interest] QML Audio loops
Marc Van Daele
marc.van.daele90 at gmail.com
Sat Apr 20 10:50:08 CEST 2019
Thanks for your reply!
Using two Audio items and overlapping the sounds works indeed fine (I had
to tweak the sound a bit at the beginning and the end).
This looks like a bug to me and I've created
https://bugreports.qt.io/browse/QTBUG-75314 for this
Marc
On Fri, 19 Apr 2019 at 21:30, Jason H <jhihn at gmx.com> wrote:
> 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.daele90 at gmail.com>
> *To:* interest at 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
> <https://freesound.org/people/florianreichelt/sounds/448213/>
> 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 at qt-project.org https://lists.qt-project.org/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20190420/241a4bf5/attachment.html>
More information about the Interest
mailing list