asapltda Posted December 19, 2021 Share Posted December 19, 2021 Good afternoon, this code can be repeated n times in windows 10, but in android it is only repeated 10 times, from the tenth time, the sound stops being heard, I need to repeat the sound up to 500 times or more, since the sound emission indicates that a process was carried out correctly. Thank you for your contributions, note: this code applies using unigui for desktop or mobile --------------------------------------------- var str :string; begin str:= UnimMemo4.Text; UniSession.AddJS(str); -------------MEMO4 -------------- a=new AudioContext(); v=a.createOscillator(); u=a.createGain(); v.connect(u); v.frequency.value=1200; v.type="square"; u.connect(a.destination); u.gain.value=60*0.01; v.start(a.currentTime); v.stop(a.currentTime+200*0.001); a = null; // remover a or delete a; // remover a delete v; delete u; Link to comment Share on other sites More sharing options...
asapltda Posted January 10, 2022 Author Share Posted January 10, 2022 no comments yet? Thank you Link to comment Share on other sites More sharing options...
Recommended Posts