(SOLVED) Beep lazarus / 43-Android ---------------------------------------------------------------------- xinyiman · 2021-12-06 14:10 Hello to all. Can anyone tell me how I can emit a simple beep? ---------------------------------------------------------------------- howardpc · 2021-12-06 14:14 1) Eat a lot of curried beans and cabbage 2) See this thread https://forum.lazarus.freepascal.org/index.php/topi c,56093.msg416924.html#msg416924 ---------------------------------------------------------------------- xinyiman · 2021-12-06 14:25 sysutils.beep run on android?! ---------------------------------------------------------------------- loaded · 2021-12-06 14:53 If I'm not mistaken, sysutils.beep doesn't work on android. It does not give an error, but it does not give sound. An example study about sound; lazandroidmodulewizard-master\demos\GUI\AppSoundPoolDemo You can find it on the way. Or a hybrid application Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i ToneGenerator toneG = new ToneGenerator(AudioManager.STREAM_ALARM, 100);toneG.startTone(ToneGenerator.TONE_CDMA_ALERT_CALL_GUARD, 200);toneG.release(); ---------------------------------------------------------------------- Thaddy · 2021-12-06 15:15 Indeed for Android and nixes it is a stub. Empty procedure. You can simply examine the rtl sources to see that. ---------------------------------------------------------------------- loaded · 2021-12-06 15:51 Quote from: Thaddy on December 06, 2021, 04:15:59 pmIndeed for Android and nixes it is a stub. Empty procedure. You can simply examine the rtl sources to see that. Now it's clear why it wasn't working. I can use the above Java code in my projects without any problems, but for other friends, master jmpessoa can add this ability by adding the above java code (there is definitely a method he knows better) to LAMW with a magic touch. ---------------------------------------------------------------------- BobDog · 2021-12-06 18:09 external 'msvcrt.dll' for win external 'c' for Linux (..I think?..) Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure sound (freq:integer;duration:integer)cdecl external 'msvcrt.dll' name '_beep'; beginsound(1000,200); //close to standard beepwriteln ('Press enter to end . . .');readlnend. ---------------------------------------------------------------------- jmpessoa · 2021-12-06 19:54 Quotejmpessoa can add this ability by adding the above java code (there is definitely a method he knows better) to LAMW with a magic touch...   But find a good icon for a new jToneGenerator component is very difficult! What about this one in attachment?  Some others suggestions? ---------------------------------------------------------------------- jmpessoa · 2021-12-07 04:51 Done! NEW! component jToneGenerator    [tab "Android Bridge Extra"] New! demo "AppToneGeneratorDemo1" Thanks to All! ---------------------------------------------------------------------- xinyiman · 2021-12-07 07:37 Thank you is perfect ---------------------------------------------------------------------- loaded · 2021-12-07 11:36 Words are not enough to thank you, master jmpessoa. Thank you very much.