<html>
<head>
<meta name="generator" content="Windows Mail 17.5.9600.20315">
<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>Hi,</div><div><br></div><div>to avoid trial and error with Harbour for you: I don’t think you will make it into Harbour with this Audio Workaround :-(</div><div><br></div><div>This is a part of my last rejection reason:</div><div>“It seems that there are problems in audio usage. […] Also audio usage is blocking suspend when I press Power  button .”</div><div>In my case there were a few Audio elements in my app that blocked suspend mode, allthough they had finished running or were paused. And at least in my case it seems to be a bug in Sailfishs QtMultimedia implementation that will (I hope so) get fixed some day.</div><div><br></div><div>br</div><div>Martin</div><div><br></div><div><br></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>Von:</b> <a href="mailto:xerxes2@gmail.com" target="_parent">Jens Persson</a><br><b>Gesendet:</b> ‎Donnerstag‎, ‎16‎. ‎Januar‎ ‎2014 ‎23‎:‎24<br><b>An:</b> <a href="mailto:devel@lists.sailfishos.org" target="_parent">Sailfish OS Developers</a></font></div></div><div><br></div><div dir=""><div dir="ltr">So, I switched my shutdown logic to qml timers and they work just fine when the gstreamer pipeline is in paused state. And I got a bit curious so I also tested with the qml multimedia plugin and it worked just fine too. So basically all you need is one line (and one import) to make timers work in qml:<br>
<br>Audio { source: "file.mp3" }<br><div><div class="gmail_extra"><br></div><div class="gmail_extra">That's it. I don't know which way is the best but I know which is the laziest. Just throw in a few cool sounds to complement the obnoxious beeper. :)<br>
</div><div class="gmail_extra"><br></div><div class="gmail_extra">Greets Jens<br><br></div><div class="gmail_extra"><div class="gmail_quote">On Tue, Jan 14, 2014 at 12:32 PM, Thomas Tanghus <span dir="ltr"><<a href="mailto:thomas@tanghus.net" target="_parent">thomas@tanghus.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;">That's an interesting approach :) I just might try that if it doesn't pass QA.<br>
<div><div class="h5"><br>
On Tuesday 14 January 2014 07:28 Jens Persson wrote:<br>
> Ok, did some fast checking now. Yes you were right, QTimer doesn't work,<br>
> singleShot or not. :( But ... it works for my app because it plays audio<br>
> and it works even if the gstreamer pipeline is in paused state. My app uses<br>
> gstreamer directly but you can try some other (easier) way, I think there's<br>
> quite a few of them. Just load an audio file and set it to paused state and<br>
> timers will hopefully work just fine. Hopefully you will make it to the<br>
> harbour this way. :)<br>
><br></div></div></blockquote></div></div></div></div>
</div></div>
</body>
</html>