caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Using the PC speaker
@ 2006-06-03 16:58 Sébastien Hinderer
  2006-06-03 17:25 ` [Caml-list] " Eric Cooper
  0 siblings, 1 reply; 2+ messages in thread
From: Sébastien Hinderer @ 2006-06-03 16:58 UTC (permalink / raw)
  To: caml-list

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,
Sébastien.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Caml-list] Using the PC speaker
  2006-06-03 16:58 Using the PC speaker Sébastien Hinderer
@ 2006-06-03 17:25 ` Eric Cooper
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Cooper @ 2006-06-03 17:25 UTC (permalink / raw)
  To: caml-list

On Sat, Jun 03, 2006 at 06:58:41PM +0200, Sébastien Hinderer wrote:
> 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.

I have some code that does this by writing to /dev/dsp -- it's
Linux-specific and also requires a small C stub.  Email me if you want it.

-- 
Eric Cooper             e c c @ c m u . e d u


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-06-03 17:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-03 16:58 Using the PC speaker Sébastien Hinderer
2006-06-03 17:25 ` [Caml-list] " Eric Cooper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).