caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Richard Jones <rich@annexia.org>
To: Vu Ngoc San <san.vu-ngoc@ujf-grenoble.fr>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] reading audio
Date: Mon, 4 Dec 2006 11:42:45 +0000	[thread overview]
Message-ID: <20061204114243.GA13275@furbychan.cocan.org> (raw)
In-Reply-To: <4573E826.1080803@ujf-grenoble.fr>

On Mon, Dec 04, 2006 at 10:19:34AM +0100, Vu Ngoc San wrote:
> is there a library available for reading wav files in ocaml and, say,
> convert it to a bigarray or something equivalent ?

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/

Rich.

-- 
Richard Jones, CTO Merjis Ltd.
Merjis - web marketing and technology - http://merjis.com
Internet Marketing and AdWords courses - http://merjis.com/courses - NEW!
Merjis blog - http://blog.merjis.com - NEW!


  parent reply	other threads:[~2006-12-04 11:46 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 [this message]
2006-12-04 19:30   ` Erik de Castro Lopo
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=20061204114243.GA13275@furbychan.cocan.org \
    --to=rich@annexia.org \
    --cc=caml-list@inria.fr \
    --cc=san.vu-ngoc@ujf-grenoble.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).