[Lazarus] Beep?

Landmesser John jmlandmesser at gmx.de
Tue Mar 27 08:11:24 CEST 2018


perhaps:

* A simple visual component to play WAVe files in Windows or Linux
* For more information, see: http://wiki.freepascal.org/TPlaySound


Am 26.03.2018 um 04:02 schrieb Donald Ziesig via Lazarus:
>
> Hi Everyone!
>
> I am using Lazarus 1.8 on Linux Mint.  I would like to use the 
> Windows.Beep( Freq, Duration) function, or (if not available) 
> SysUtils.Beep subprograms.
>
> Simplest problem.  SysUtils.Beep compiles and links but is silent.
>
> Slightly more difficult (according to StackOverflow)
>
> I should be able to insert (manually) Windows in the uses clause, then 
> call the windows.beep( f, d) function, but fcp can't find Windows even 
> though there are several windows.pp files in the fpcscr directories.
>
> Failing that, the article says:
>
> |functionBeep(dwFreq,dwDuration:DWORD):BOOL;stdcall;external'kernel32.dll';|
>
> should work, but it causes a linker error after compilation.  I don't 
> have lernel32.dll on my Linux system.
>
> A long time ago, I used the Windows.Beep (on windows) to produce Morse 
> Code error messages while debugging visual components.  I would like 
> to do that now if possible, but on Linux.
>
> Any suggestions would be appreciated.
>
> Thanks,
>
> Don Ziesig
>
>
>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20180327/1c2c3d4e/attachment-0001.html>


More information about the Lazarus mailing list