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=1.0 required=5.0 tests=AWL,SPF_NEUTRAL autolearn=disabled version=3.1.3 Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 0F1C6BC0A for ; Tue, 2 Jan 2007 20:39:24 +0100 (CET) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l02JdNFr003886 for ; Tue, 2 Jan 2007 20:39:23 +0100 Received: by ug-out-1314.google.com with SMTP id q2so6067008uge for ; Tue, 02 Jan 2007 11:39:21 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=b0Wa3ZT7FiexAkv0hV00qxXAQKk7LszJ84nda6AorC5Us0BQgng/823JaNrbAO7RbdmsjNxUcLXrd7jbzumBrJOfNrJF0dO/E1Lc32zNa873UcJh/LsXx1n5ZBsz8POUIZK3CVqDP+ilSev3tlJFKnhjXXorc2sj0vrOXxtt1gM= Received: by 10.82.114.3 with SMTP id m3mr1588293buc.1167766761343; Tue, 02 Jan 2007 11:39:21 -0800 (PST) Received: by 10.82.140.13 with HTTP; Tue, 2 Jan 2007 11:39:21 -0800 (PST) Message-ID: <53c655920701021139u76c4bdd9p22efb30a0e44c07@mail.gmail.com> Date: Tue, 2 Jan 2007 20:39:21 +0100 From: "David Baelde" Reply-To: david.baelde@ens-lyon.org To: "Erik de Castro Lopo" Subject: Re: [Caml-list] ANNOUNCE : libsndfile-ocaml alpha Cc: caml-list@yquem.inria.fr In-Reply-To: <20070102222710.9d2e3538.mle+ocaml@mega-nerd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20061222155407.ebe6c272.mle+ocaml@mega-nerd.com> <45923DC2.9000504@ujf-grenoble.fr> <20061227211046.656615d0.mle+ocaml@mega-nerd.com> <20061231080756.66e89d6c.mle+ocaml@mega-nerd.com> <459A3A44.2050700@ujf-grenoble.fr> <20070102222710.9d2e3538.mle+ocaml@mega-nerd.com> X-j-chkmail-Score: MSGID : 459AB4EB.001 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 459AB4EB.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 libs:01 arrays:01 datatypes:01 wrote:01 caml-list:01 ints:01 functions:01 strings:01 data:02 string:02 float:03 erik:04 conversions:05 argue:08 On 1/2/07, Erik de Castro Lopo wrote: > I was particularly interested if there was any utility to providing > functions for accessing shorts or ints. So far noone has come up with > a need for these. Ocaml-vorbis and ocaml-mad take strings as input. Reading data from libsndfile as string would allow a straightforward use of these libs together. One might argue that having vorbis and mad work on float arrays would be better. That's a point. But on the other hand, the current datatypes avoid some conversions -- at least on the vorbis/mad side. My 2 cents. -- David