[fpc-pascal]Yet another bug in Win32 CRT unit

Jeff Wormsley daworm10 at comcast.net
Fri Mar 8 03:24:12 CET 2002


*********** REPLY SEPARATOR  ***********

On 3/7/2002 at 12:14 PM marcov at stack.nl wrote:

>That is dangerous, since it could disrupt already running audio using apps.
>(the beep would simply be not audible, or other porgs might even crash.)
>
>Don't forget that non-Dos oses are often multitasking!
>
>It could be done like that if needed for special purposes, but it isn't fit
>as a general solution for the above reasons.

In Delphi, the Windows function Beep(Frequency, Duration) will beep the PC speaker.  The normal Delphi beep does not take parameters and uses one of the sound system .wav files.  You have to use the one located in Windows.pas and that calls Kernal32.dll.  It does block during execution though.

Jeff.








More information about the fpc-pascal mailing list