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=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id DC97FBBCA for ; Thu, 3 Apr 2008 22:18:03 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEAM/Y9EfAXQIm/2dsb2JhbACsOQQ X-IronPort-AV: E=Sophos;i="4.25,600,1199660400"; d="scan'208";a="10394580" Received: from discorde.inria.fr ([192.93.2.38]) by mail1-smtp-roc.national.inria.fr with ESMTP; 03 Apr 2008 22:17:49 +0200 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id m33KHh92001928 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Thu, 3 Apr 2008 22:17:49 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArQAAKPX9Efa1uFijWdsb2JhbACRVQEBAQEJBQcHGJouBA X-IronPort-AV: E=Sophos;i="4.25,600,1199660400"; d="scan'208";a="9165995" Received: from smtp.syd.people.net.au ([218.214.225.98]) by mail2-smtp-roc.national.inria.fr with SMTP; 03 Apr 2008 22:17:37 +0200 Received: (qmail 5540 invoked from network); 3 Apr 2008 20:18:00 -0000 Received: from unknown (HELO hendrix.mega-nerd.net) (218.214.64.136) by smtp.syd.people.net.au with SMTP; 3 Apr 2008 20:18:00 -0000 Received: from hendrix (hendrix [192.168.200.99]) by hendrix.mega-nerd.net (Postfix) with SMTP id D7F70AB195 for ; Fri, 4 Apr 2008 06:17:29 +1000 (EST) Date: Fri, 4 Apr 2008 07:17:29 +1100 From: Erik de Castro Lopo To: caml-list@inria.fr Subject: Re: [Caml-list] Operators for Int64 and Int32 Message-Id: <20080404071729.154e130e.mle+ocaml@mega-nerd.com> In-Reply-To: <906164100804030708p3e2788a0p29b69f4d46600622@mail.gmail.com> References: <906164100804030708p3e2788a0p29b69f4d46600622@mail.gmail.com> Reply-To: caml-list@inria.fr Organization: Erik Conspiracy Secret Labs X-Mailer: Sylpheed 2.4.5 (GTK+ 2.12.0; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Miltered: at discorde with ID 47F53B67.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 ocaml:01 subset:01 workarounds:01 wrote:01 parsing:01 parsing:01 caml-list:01 int:01 int:01 data:02 tgz:02 api:02 slight:04 erik:04 MichaƂ Maciejewski wrote: > I'm quite new to OCaml but recently I had to write a wave file parsing > application. If you need to read WAV files, why not just use libsndfile: http://www.mega-nerd.com/libsndfile/ and the libsndfile Ocaml wrapper: http://www.mega-nerd.com/tmp/libsndfile-ocaml-20071120-0622.tgz It's basically working, but there might still be some slight API changes. The reason I suggest this is that WAV file parsing is probably much, much harder than you immagine. Here's why: - WAV files allow the audio data to be encoded in dozens of different formants. Supporting even a small subset of them is a PITA. - There are numerous programs that create malformed files. Adding workarounds to these is a lot of work. - libsndfile already supports a whole bunch of other file formats. Erik -- ----------------------------------------------------------------- Erik de Castro Lopo ----------------------------------------------------------------- With 22,100,000 legitimate businesses in the US alone, allowing each to send only one UCE per *year* gets every mailbox 60,547 emails per day. There will either be email without UCE or there will be no email.