<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";
color:black;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
span.EmailStyle18
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;
color:black;}
span.EmailStyle21
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 2.0cm 70.85pt 2.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="FI" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">fyi
<a href="https://together.jolla.com/question/37387/music-playback-is-interrupted-if-a-notification-occurs-while-notification-volume-is-muted/">
https://together.jolla.com/question/37387/music-playback-is-interrupted-if-a-notification-occurs-while-notification-volume-is-muted/</a>
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext"> Devel [mailto:devel-bounces@lists.sailfishos.org]
<b>On Behalf Of </b>Krzysztof Lesiak<br>
<b>Sent:</b> 29. joulukuuta 2016 22:38<br>
<b>To:</b> Sailfish OS Developers<br>
<b>Subject:</b> Re: [SailfishDevel] ngfd ini files documentation<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p>Alright, now I've switched to using libngf-qt5 for my testing application so I don't have to rely on triggering the right notifications.<o:p></o:p></p>
<p><o:p> </o:p></p>
<p>Plus, I've found the config lines interfering with my music playback:<o:p></o:p></p>
<p><o:p> </o:p></p>
<p>sound.stream.media.role = notification<br>
sound.stream.droid.device.additional-route = AUDIO_DEVICE_OUT_SPEAKER<o:p></o:p></p>
<p><o:p> </o:p></p>
<p>When those two are commented out in an event file, the notification tone is played "on top" of the currently played music.<o:p></o:p></p>
<p>The first one is the main offender because it mutes playback, but if the second is left uncommented, there are audio hitches at the beginning and the end of notification tone playback.<o:p></o:p></p>
<p><o:p> </o:p></p>
<p>I literally just came up with it and haven't tested it thoroughly, but if there aren't any unwanted effects introduced by my changes, is there any way I could propose a patch for inclusion into a future update? This was one of my main annoyances with the
OS and I think it makes for a far better user experience if music playback isn't completely muted on certain types of events.<o:p></o:p></p>
<p>Also, if there are any sailors responsible for ngfd reading this list, what do you think about this?<o:p></o:p></p>
<p><o:p> </o:p></p>
<p>Regards,<o:p></o:p></p>
<p>Krzysztof<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On 26.12.2016 12:20, Kimmo Lindholm wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">For testing, you can use e.g. a python script, see here
<a href="https://talk.maemo.org/showthread.php?t=92303">https://talk.maemo.org/showthread.php?t=92303</a></span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">-kimmo</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Devel [<a href="mailto:devel-bounces@lists.sailfishos.org">mailto:devel-bounces@lists.sailfishos.org</a>]
<b>On Behalf Of </b>Krzysztof Lesiak<br>
<b>Sent:</b> 26. joulukuuta 2016 12:41<br>
<b>To:</b> <a href="mailto:devel@lists.sailfishos.org">devel@lists.sailfishos.org</a><br>
<b>Subject:</b> [SailfishDevel] ngfd ini files documentation</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<div id="divtagdefaultwrapper">
<p><span style="font-family:"Calibri","sans-serif"">Hi all,</span><o:p></o:p></p>
<p><span style="font-family:"Calibri","sans-serif""> </span><o:p></o:p></p>
<p><span style="font-family:"Calibri","sans-serif"">I wanted to ask if there is any documentation on ngfd, specifically about the event .ini files. I'd like to prevent IM/SMS tones muting audio playback because it's pretty annoying to me when I'm listening
to music. Someone on IRC already pointed me to ngfd being responsible for that policy, but there isn't any real documentation in the git repository. Can anyone explain the general format of the .ini files in events.d? Also, is there a better way to test my
changes than sending myself messages from another device?</span><o:p></o:p></p>
<p><span style="font-family:"Calibri","sans-serif""> </span><o:p></o:p></p>
<p><span style="font-family:"Calibri","sans-serif"">Best Regards,</span><o:p></o:p></p>
<p><span style="font-family:"Calibri","sans-serif"">Krzysztof</span><o:p></o:p></p>
</div>
<p class="MsoNormal"><br>
<br>
<br>
<o:p></o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>SailfishOS.org Devel mailing list<o:p></o:p></pre>
<pre>To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.sailfishos.org</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>