From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 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 8AFE5BC0B for ; Mon, 4 Dec 2006 10:19:42 +0100 (CET) Received: from amazone2.ujf-grenoble.fr (amazone2.ujf-grenoble.fr [152.77.2.202]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id kB49Jgvw004559 for ; Mon, 4 Dec 2006 10:19:42 +0100 Received: from tana2.ujf-grenoble.fr (tana2.ujf-grenoble.fr [152.77.24.22]) by amazone2.ujf-grenoble.fr (8.13.7/8.13.7/Configured by JE 21 07 2006) with ESMTP id kB49JY7K059158 for ; Mon, 4 Dec 2006 10:19:34 +0100 (CET) Received: from localhost (unknown [127.0.0.1]) by tana2.ujf-grenoble.fr (Postfix) with ESMTP id D2CBF250423 for ; Mon, 4 Dec 2006 10:19:34 +0100 (CET) X-Virus-Scanned: Scanned on tana2.ujf-grenoble.fr Received: from tana2.ujf-grenoble.fr ([127.0.0.1]) by localhost (tana2.ujf-grenoble.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EIVrdfqt6gfT for ; Mon, 4 Dec 2006 10:19:34 +0100 (CET) Received: from tibre1.ujf-grenoble.fr (tibre1.ujf-grenoble.fr [152.77.18.86]) by tana2.ujf-grenoble.fr (Postfix) with ESMTP id A472D25041C for ; Mon, 4 Dec 2006 10:19:34 +0100 (CET) Received: from ifapp1.ujf-grenoble.fr (mozart.ujf-grenoble.fr [193.54.241.5]) by tibre1.ujf-grenoble.fr (8.13.3/8.13.3) with ESMTP id kB49JYqU087176 for ; Mon, 4 Dec 2006 10:19:34 +0100 (CET) (envelope-from san.vu-ngoc@ujf-grenoble.fr) Received: from [193.48.255.251] ([::ffff:193.48.255.251]) by fourier.ujf-grenoble.fr with esmtp; Mon, 04 Dec 2006 10:19:34 +0100 id 0000BA44.4573E826.00004DA6 Message-ID: <4573E826.1080803@ujf-grenoble.fr> Date: Mon, 04 Dec 2006 10:19:34 +0100 From: Vu Ngoc San User-Agent: Thunderbird 1.5.0.7 (X11/20060927) MIME-Version: 1.0 To: Caml Mailing List Subject: reading audio X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 4573E82E.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocaml:01 bigarray:01 ocaml:01 bigarray:01 chunk:02 seems:03 library:03 guess:04 converting:05 interface:06 evolved:06 memory:08 equivalent:09 maybe:10 convert:11 Hello is there a library available for reading wav files in ocaml and, say, convert it to a bigarray or something equivalent ? I had a look at sdl_mixer, which does read wav files, but it seems that you don't have physical accesss to the audio if you wanted to modifiy it in memory. (or I missed something). All you can do is play/mix it. I guess it should not be too hard to look at the C code and come up with a nice ocaml interface for converting the audio chunk into a bigarray, but that's beyond my capabilities. I looked at the list archive and back in 2003 some people had similar whishes. Maybe this have evolved ? Thanks for you help. San