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@inria.fr
Subject: Re: [Caml-list] reading audio
Date: Tue, 5 Dec 2006 06:30:22 +1100	[thread overview]
Message-ID: <20061205063022.5a652949.mle+ocaml@mega-nerd.com> (raw)
In-Reply-To: <20061204114243.GA13275@furbychan.cocan.org>

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


  reply	other threads:[~2006-12-04 19:30 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
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 [this message]
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=20061205063022.5a652949.mle+ocaml@mega-nerd.com \
    --to=mle+ocaml@mega-nerd.com \
    --cc=caml-list@inria.fr \
    /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).