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] Operators for Int64 and Int32
Date: Fri, 4 Apr 2008 07:17:29 +1100	[thread overview]
Message-ID: <20080404071729.154e130e.mle+ocaml@mega-nerd.com> (raw)
In-Reply-To: <906164100804030708p3e2788a0p29b69f4d46600622@mail.gmail.com>

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:

    http://www.mega-nerd.com/libsndfile/

and the libsndfile Ocaml wrapper:

    http://www.mega-nerd.com/tmp/libsndfile-ocaml-20071120-0622.tgz

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
   formats.

Erik
-- 
-----------------------------------------------------------------
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.


  parent reply	other threads:[~2008-04-03 20:18 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-03 14:08 Michał Maciejewski
2008-04-03 15:24 ` David Allsopp
2008-04-03 15:44   ` Bünzli Daniel
2008-04-03 19:00   ` David Thomas
2008-04-03 19:50   ` Michał Maciejewski
2008-04-03 22:22     ` Jon Harrop
2008-04-03 17:15 ` Richard Jones
2008-04-03 20:17 ` Erik de Castro Lopo [this message]
2008-04-03 20:39   ` Michał Maciejewski
2008-04-03 22:02     ` Erik de Castro Lopo
2008-04-03 22:17   ` Richard Jones
2008-04-04  1:47     ` Erik de Castro Lopo
2008-04-04 17:58       ` Adrien
2008-04-04 21:07         ` Richard Jones
2008-04-06 17:34           ` Adrien

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=20080404071729.154e130e.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).