<html>
<head>
<meta name="generator" content="Windows Mail 17.5.9600.20856">
<style type="text/css"><!--html { font-family: "Color Emoji", "Calibri", "Segoe UI", "Meiryo", "Microsoft YaHei UI", "Microsoft JhengHei UI", "Malgun Gothic", "sans-serif"; }--></style><style data-externalstyle="true"><!--
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
}
p.MsoNormal, li.MsoNormal, div.MsoNormal {
margin:0in;
margin-bottom:.0001pt;
}
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst, 
p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle, 
p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
line-height:115%;
}
--></style></head>
<body dir="ltr">
<div data-externalstyle="false" dir="ltr" style="font-family: 'Calibri', 'Segoe UI', 'Meiryo', 'Microsoft YaHei UI', 'Microsoft JhengHei UI', 'Malgun Gothic', 'sans-serif';font-size:12pt;"><div>Please use SoundEffect class for that: <a href="http://doc.qt.io/qt-5/qml-qtmultimedia-soundeffect.html" target="_parent">http://doc.qt.io/qt-5/qml-qtmultimedia-soundeffect.html</a><br></div><div data-signatureblock="true"><div><br></div><div>Sent from Windows Mail</div><div><br></div></div><div style="padding-top: 5px; border-top-color: rgb(229, 229, 229); border-top-width: 1px; border-top-style: solid;"><div><font face=" 'Calibri', 'Segoe UI', 'Meiryo', 'Microsoft YaHei UI', 'Microsoft JhengHei UI', 'Malgun Gothic', 'sans-serif'" style='line-height: 15pt; letter-spacing: 0.02em; font-family: "Calibri", "Segoe UI", "Meiryo", "Microsoft YaHei UI", "Microsoft JhengHei UI", "Malgun Gothic", "sans-serif"; font-size: 12pt;'><b>From:</b> <a href="mailto:thomas@tanghus.net" target="_parent">Thomas Tanghus</a><br><b>Sent:</b> ‎Thursday‎, ‎June‎ ‎11‎, ‎2015 ‎11‎:‎06‎ ‎PM<br><b>To:</b> <a href="mailto:devel@lists.sailfishos.org" target="_parent">devel@lists.sailfishos.org</a></font></div></div><div><br></div><div dir=""><div id="readingPaneBodyContent">On Tuesday 03 February 2015 23:13:44 Luis Manuel Ramos Da Costa wrote:<br>>         Audio {<br>>             id      : whipSound<br>>             loops   : Audio.Infinite<br>>             source:"qrc:/sounds/resources/sounds/whipSound.flac"<br>>         }<br><br>That can teach me to read the ml regularly ;)<br><br>The loops property isn't documented in the documentation in the SDK, so I made <br>an ugly hack to emulate it:<br><br>   Audio {<br>        id: alarm;<br>        source: Qt.resolvedUrl(selectedSound);<br><br>        property bool forceStopped: false;<br><br>        function forceStop() {<br>            forceStopped = true;<br>            stop();<br>        }<br><br>        onStopped: {<br>            if(loopSound && !forceStopped) {<br>                play();<br>            } else {<br>                forceStopped = false;<br>            }<br>        }<br>    }<br><br><br>-- <br>Med venlig hilsen / Best regards<br><br>Thomas Tanghus<br></div></div></div>
</body>
</html>