<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<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.</p>
<p><br>
</p>
<p>Plus, I've found the config lines interfering with my music playback:</p>
<p><br>
</p>
<p>sound.stream.media.role = notification<br>
sound.stream.droid.device.additional-route = AUDIO_DEVICE_OUT_SPEAKER</p>
<p><br>
</p>
<p>When those two are commented out in an event file, the notification tone is played "on top" of the currently played music.</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.<br>
</p>
<p><br>
</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.</p>
<p>Also, if there are any sailors responsible for ngfd reading this list, what do you think about this?</p>
<p><br>
</p>
<p>Regards,</p>
<p>Krzysztof<br>
</p>
<br>
<div class="moz-cite-prefix">On 26.12.2016 12:20, Kimmo Lindholm wrote:<br>
</div>
<blockquote cite="mid:DB6PR0701MB234170C6CF137937B78CC70DFA960@DB6PR0701MB2341.eurprd07.prod.outlook.com" type="cite">
<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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
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";}
span.EmailStyle18
{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]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D" lang="EN-US">For testing, you can use e.g. a python script, see here
<a moz-do-not-send="true" href="https://talk.maemo.org/showthread.php?t=92303">https://talk.maemo.org/showthread.php?t=92303</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D" lang="EN-US">-kimmo<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D" lang="EN-US"><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 style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US"> Devel [<a class="moz-txt-link-freetext" 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 class="moz-txt-link-abbreviated" href="mailto:devel@lists.sailfishos.org">
devel@lists.sailfishos.org</a><br>
<b>Subject:</b> [SailfishDevel] ngfd ini files documentation<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div id="divtagdefaultwrapper">
<p><span style="font-family:"Calibri","sans-serif";color:black">Hi all,<o:p></o:p></span></p>
<p><span style="font-family:"Calibri","sans-serif";color:black"><o:p> </o:p></span></p>
<p><span style="font-family:"Calibri","sans-serif";color:black">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?<o:p></o:p></span></p>
<p><span style="font-family:"Calibri","sans-serif";color:black"><o:p> </o:p></span></p>
<p><span style="font-family:"Calibri","sans-serif";color:black">Best Regards,<o:p></o:p></span></p>
<p><span style="font-family:"Calibri","sans-serif";color:black">Krzysztof<o:p></o:p></span></p>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset> <br>
<pre wrap="">_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to <a class="moz-txt-link-abbreviated" href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.sailfishos.org</a></pre>
</blockquote>
<br>
</body>
</html>