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
[Caml-list] Operators for Int64 and Int32
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-04-03 (20:18)
From: Erik de Castro Lopo <mle+ocaml@m...>
Subject: Re: [Caml-list] Operators for Int64 and Int32
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:


and the libsndfile Ocaml wrapper:


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

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.