From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 4E073BB84 for ; Sat, 3 Jun 2006 19:07:03 +0200 (CEST) Received: from delay-cv.club-internet.fr (delay-cv.club-internet.fr [194.158.96.172]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id k53H727Y006706 for ; Sat, 3 Jun 2006 19:07:03 +0200 Received: from relay-bv.club-internet.fr (relay-bv.cs.clubint.net [172.16.1.56]) by delay-cv.club-internet.fr (Postfix) with ESMTP id 0FE2171CF6B for ; Sat, 3 Jun 2006 18:58:31 +0200 (CEST) Received: from Galois (d02v-89-83-224-203.d4.club-internet.fr [89.83.224.203]) by relay-bv.club-internet.fr (Postfix) with ESMTP id 80BAE25615 for ; Sat, 3 Jun 2006 18:58:26 +0200 (CEST) Received: from evariste by Galois with local (Exim 4.62) (envelope-from ) id 1FmZST-0001sg-8D for caml-list@yquem.inria.fr; Sat, 03 Jun 2006 18:58:41 +0200 Date: Sat, 3 Jun 2006 18:58:41 +0200 From: =?iso-8859-1?Q?S=E9bastien?= Hinderer To: caml-list@yquem.inria.fr Subject: Using the PC speaker Message-ID: <20060603165840.GA7222@Galois> Mail-Followup-To: caml-list@yquem.inria.fr MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Sarkowall: Nicolas Sarkozy, pour une France karsherisee, sans Pensee, sans Idees X-Miltered: at concorde with ID 4481C1B6.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ens-lyon:01 ocaml:01 graphics:02 sebastien:05 sebastien:05 arguments:07 speaker:07 speaker:07 function:08 i'm:08 mode:12 but:13 some:13 should:13 should:13 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=disabled version=3.0.3 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.