caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Erik de Castro Lopo <mle+ocaml@mega-nerd.com>
To: caml-list@yquem.inria.fr
Cc: david.baelde@ens-lyon.org
Subject: Re: [Caml-list] reading audio
Date: Mon, 4 Dec 2006 21:01:31 +1100	[thread overview]
Message-ID: <20061204210131.bfcd945b.mle+ocaml@mega-nerd.com> (raw)
In-Reply-To: <53c655920612040131v4573def3o2918e4637a6a3f75@mail.gmail.com>

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


  reply	other threads:[~2006-12-04 10:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-04  9:19 Vu Ngoc San
2006-12-04  9:31 ` [Caml-list] " David Baelde
2006-12-04 10:01   ` Erik de Castro Lopo [this message]
2006-12-04 10:35     ` Vu Ngoc San
2006-12-04 12:56   ` Vu Ngoc San
2006-12-04 11:42 ` Richard Jones
2006-12-04 19:30   ` Erik de Castro Lopo
2006-12-04 14:20 ` Eric Cooper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061204210131.bfcd945b.mle+ocaml@mega-nerd.com \
    --to=mle+ocaml@mega-nerd.com \
    --cc=caml-list@yquem.inria.fr \
    --cc=david.baelde@ens-lyon.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).