<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: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=iso-8859-1"><meta name=Generator content="Microsoft Word 15 (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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;
        mso-fareast-language:EN-US;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.tlid-translation
        {mso-style-name:tlid-translation;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
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=FR link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span class=tlid-translation><span lang=EN>Ok but this is a strange way to handle backward compatibility</span></span><span style='color:windowtext'><o:p></o:p></span></p><p class=MsoNormal><span style='color:windowtext'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:windowtext'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='color:windowtext;mso-fareast-language:FR'>De :</span></b><span style='color:windowtext;mso-fareast-language:FR'> users <users-bounces@lists.scilab.org> <b>De la part de</b> Samuel Gougeon<br><b>Envoyé :</b> lundi 2 mars 2020 16:15<br><b>À :</b> users@lists.scilab.org<br><b>Objet :</b> Re: [Scilab-users] strange sounds repeated over and over in scilab 6.1.0<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Le 02/03/2020 à 14:52, Perrichon a écrit :<span style='mso-fareast-language:FR'><o:p></o:p></span></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>Hello<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>Few years ago, I got routines producing sounds in threads<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>With Scilab 5.5.2, sounds are produced once.<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>With Scilab 6.1.0, sounds are repeated endlessly.<o:p></o:p></p></blockquote><p><o:p> </o:p></p><p>No no, "only" 16 times :-)<br>You can stop it with playsnd([]) or CTRL+C.<o:p></o:p></p><p>I have proposed to remove sound(), that is a duplicate of playsnd() and brings nothing.<br>But finally this has not been done for 6.1.0.<br>playsnd() has been upgraded. In the change, its nbits argument has been removed.<br>But we have forgotten to update sound() calling playsnd().<br>So you hear the sound the default nbits=16 times.<o:p></o:p></p><p>You must directly use playsnd() instead.<o:p></o:p></p><p>Samuel<o:p></o:p></p></div></body></html>