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: Richard Jones <rich@a...>
Subject: Re: [Caml-list] reading audio
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!