English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
reading audio
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-12-04 (10:01)
From: Erik de Castro Lopo <mle+ocaml@m...>
Subject: Re: [Caml-list] reading audio
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 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