Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Using the PC speaker
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-06-03 (17:07)
From: Sébastien Hinderer <Sebastien.Hinderer@e...>
Subject: Using the PC speaker
Dear all,

Is there some code available to make the PC speaker beep from within an
OCaml program, please ?

The function I'm looking for should take a frequency (and a duration) as
arguments, like Graphics.sound does, but this should also work in text
mode. In other words, printing a bell is not enough.

Thanks a lot for any help,