caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Eric Cooper <ecc@cmu.edu>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Using the PC speaker
Date: Sat, 3 Jun 2006 13:25:52 -0400	[thread overview]
Message-ID: <20060603172552.GA16933@localhost> (raw)
In-Reply-To: <20060603165840.GA7222@Galois>

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


      reply	other threads:[~2006-06-03 17:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-03 16:58 Sébastien Hinderer
2006-06-03 17:25 ` Eric Cooper [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060603172552.GA16933@localhost \
    --to=ecc@cmu.edu \
    --cc=caml-list@yquem.inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).