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 5ACD6BC0B for ; Mon, 4 Dec 2006 11:01:39 +0100 (CET) Received: from smtp.syd.people.net.au (smtp.syd.people.net.au [218.214.225.98]) by concorde.inria.fr (8.13.6/8.13.6) with SMTP id kB4A1ZtT016133 for ; Mon, 4 Dec 2006 11:01:37 +0100 Received: (qmail 29431 invoked from network); 4 Dec 2006 10:01:48 -0000 Received: from unknown (HELO coltrane.mega-nerd.net) (218.214.64.136) by smtp.syd.people.net.au with SMTP; 4 Dec 2006 10:01:48 -0000 Received: from coltrane (coltrane [192.168.1.101]) by coltrane.mega-nerd.net (Postfix) with SMTP id 31BFF7ADA; Mon, 4 Dec 2006 21:01:32 +1100 (EST) Date: Mon, 4 Dec 2006 21:01:31 +1100 From: Erik de Castro Lopo To: caml-list@yquem.inria.fr Cc: david.baelde@ens-lyon.org Subject: Re: [Caml-list] reading audio Message-Id: <20061204210131.bfcd945b.mle+ocaml@mega-nerd.com> In-Reply-To: <53c655920612040131v4573def3o2918e4637a6a3f75@mail.gmail.com> References: <4573E826.1080803@ujf-grenoble.fr> <53c655920612040131v4573def3o2918e4637a6a3f75@mail.gmail.com> Organization: Erik Conspiracy Secret Labs X-Mailer: Sylpheed version 2.3.0beta3 (GTK+ 2.8.20; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 4573F1FF.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocaml:01 ocaml:01 wrote:01 caml-list:01 ints:01 functions:01 binding:02 floats:02 floats:02 strong:96 erik:04 erik:04 problem:05 function:08 file:08 David Baelde wrote: > Hi, > > It would be nice to have a binding of libsndfile for that kind of > purpose. Unfortunately I don't think we have one yet. Since I (the main author of libsndfile) is also an Ocaml user I really should get around to doing that. However, the Ocaml version would not ba able to have functions for reading shorts or ints, just a function for reading doubles (as Ocaml floats). Same for the write side. libsndfile would however do the conversion between the ocaml level floats at whatever the disk file format required. Erik -- +-----------------------------------------------------------+ Erik de Castro Lopo +-----------------------------------------------------------+ "The problem with using C++ ... is that there's already a strong tendency in the language to require you to know everything before you can do anything." -- Larry Wall