Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
From: Erik de Castro Lopo <mle+ocaml@m...>
Subject: Re: [Caml-list] reading audio
Richard Jones wrote:

> The WAV format is pretty simple.  Have you tried just mapping the
> file?  You'll need to ignore the first "data samples" covering the
> first 44 bytes of the file (the header).
> 
> http://ccrma.stanford.edu/courses/422/projects/WaveFormat/

Yes, the most common WAV files are easy to parse but there are
a gazzillion extensions and corner cases to take care of.

So *please* don't lead people down that path, bcause next thing
they will be writting WAV files as well and they will make
a mistake and not follow the spec (so called) correctly and their
software will become popular and I (as the author of libsndfile)
will have to add yet another hack to work around someone else's
broken WAV file (libsndfile is already full of these).

I'm busy ATM, but give me a couple of weeks and I will make an
ocaml-libsndfile.

Erik
-- 
+-----------------------------------------------------------+
  Erik de Castro Lopo
+-----------------------------------------------------------+
"Whenever the C++ language designers had two competing ideas as to
how they should solve some problem, they said, "OK, we'll do them
both". So the language is too baroque for my taste." -- Donald E Knuth