[Lazarus] How to produce a tone at Tone frequency for duration MSecs (milliseconds)

Henry Vermaak henry.vermaak at gmail.com
Thu Sep 2 16:42:29 CEST 2010


On 2 September 2010 14:47, Sven Barth <pascaldragon at googlemail.com> wrote:
> Am 02.09.2010 13:02, schrieb Henry Vermaak:
>>
>> On 02/09/10 10:39, Peter E Williams wrote:
>>>
>>> On Wed, 01 Sep 2010 15:38:13 +0200 John vd Waeter<john at jvdw.nl> wrote:
>>>
>>>> Lol, I wrote something like that years ago... but in these days it was
>>>> allowed to address the speaker hardware...
>>>>
>>>> Windows.Beep(freq,duration) does about the same, but afaik it is not
>>>> implemented in Lazarus.
>>>
>>> At the risk of asking a silly question. Why has no-one ported the
>>> Windows.Beep procedure to Lazarus. Surely it is not too hard ?!?
>>
>> It's not fool proof, but it's not too hard. See here:
>>
>> http://github.com/johnath/beep/blob/master/beep.c
>>
>> Henry
>
> It's not only not fool proof, but beep also requires to be run as root,
> because a normal user can't open /dev/console with write access.

http://github.com/johnath/beep/blob/master/README#L25




More information about the Lazarus mailing list